{"id":340383,"date":"2026-07-16T15:40:17","date_gmt":"2026-07-16T15:40:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/japeto-labs-write-to-your-mp\/"},"modified":"2026-07-16T15:39:48","modified_gmt":"2026-07-16T15:39:48","slug":"japeto-labs-write-to-your-mp","status":"publish","type":"plugin","link":"https:\/\/su.wordpress.org\/plugins\/japeto-labs-write-to-your-mp\/","author":23523760,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.0.1","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Japeto Labs \u2013 Write to Your MP","header_author":"Japeto Labs","header_description":"Postcode to MP lookup with editable campaign letters that open in the visitor's own email client. Run multiple campaigns, each with its own shortcode. Uses postcodes.io and the UK Parliament Members API.","assets_banners_color":"b3d5dd","last_updated":"2026-07-16 15:39:48","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":23,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"japetolabs","date":"2026-07-16 15:39:48"}},"upgrade_notice":{"1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3610449,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3610449,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3610449,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3610449,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3610449,"resolution":"1","location":"assets","locale":"","width":697,"height":175},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3610449,"resolution":"2","location":"assets","locale":"","width":697,"height":1366},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3610449,"resolution":"3","location":"assets","locale":"","width":1280,"height":900},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3610449,"resolution":"4","location":"assets","locale":"","width":1265,"height":1517}},"screenshots":{"1":"The postcode lookup form embedded on a campaign page.","2":"MP details and the pre-written, editable letter shown after a successful lookup.","3":"Managing multiple campaigns in the WordPress admin.","4":"Editing a campaign: intro, subject, letter body, and supporter fields."}},"plugin_section":[],"plugin_tags":[26225,2501,360,29866,3522],"plugin_category":[42,45],"plugin_contributors":[271910],"plugin_business_model":[],"class_list":["post-340383","plugin","type-plugin","status-publish","hentry","plugin_tags-advocacy","plugin_tags-campaign","plugin_tags-contact","plugin_tags-mp","plugin_tags-postcode","plugin_category-contact-forms","plugin_category-ecommerce","plugin_contributors-japetolabs","plugin_committers-japetolabs"],"banners":{"banner":"https:\/\/ps.w.org\/japeto-labs-write-to-your-mp\/assets\/banner-772x250.png?rev=3610449","banner_2x":"https:\/\/ps.w.org\/japeto-labs-write-to-your-mp\/assets\/banner-1544x500.png?rev=3610449","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/japeto-labs-write-to-your-mp\/assets\/icon-128x128.png?rev=3610449","icon_2x":"https:\/\/ps.w.org\/japeto-labs-write-to-your-mp\/assets\/icon-256x256.png?rev=3610449","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/japeto-labs-write-to-your-mp\/assets\/screenshot-1.png?rev=3610449","caption":"The postcode lookup form embedded on a campaign page."},{"src":"https:\/\/ps.w.org\/japeto-labs-write-to-your-mp\/assets\/screenshot-2.png?rev=3610449","caption":"MP details and the pre-written, editable letter shown after a successful lookup."},{"src":"https:\/\/ps.w.org\/japeto-labs-write-to-your-mp\/assets\/screenshot-3.png?rev=3610449","caption":"Managing multiple campaigns in the WordPress admin."},{"src":"https:\/\/ps.w.org\/japeto-labs-write-to-your-mp\/assets\/screenshot-4.png?rev=3610449","caption":"Editing a campaign: intro, subject, letter body, and supporter fields."}],"raw_content":"<!--section=description-->\n<p>Write to Your MP adds a postcode box to any page. A visitor enters their postcode, sees their MP's name, constituency, party, and email, and gets a campaign letter they can edit before sending. Clicking the button opens the letter in their own email client via <code>mailto:<\/code> \u2014 the email is sent by the visitor, not your site, so you carry no responsibility for moderating outgoing mail.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Postcode to MP lookup with no API key required.<\/li>\n<li>Multiple campaigns, each a separate entry with its own shortcode <code>[wtym_write_to_mp slug=\"your-campaign\"]<\/code>.<\/li>\n<li>Editable letter templates with placeholders for MP details and supporter-entered fields.<\/li>\n<li>Configurable visitor fields (first name, last name, postal address) per campaign, with optional required validation.<\/li>\n<li>Friendly handling of invalid postcodes, vacant seats, and MPs with no public email.<\/li>\n<li>Self-contained, responsive styling that inherits your theme fonts.<\/li>\n<\/ul>\n\n<p>Placeholders:<\/p>\n\n<ul>\n<li>From the MP lookup: <code>{mp_name}<\/code>, <code>{constituency}<\/code>, <code>{party}<\/code>.<\/li>\n<li>From the supporter (the fields you enable): <code>{first_name}<\/code>, <code>{last_name}<\/code>, <code>{address}<\/code>.<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>This plugin looks up MP details from two public services, called server-side only when a visitor submits a postcode:<\/p>\n\n<ul>\n<li>postcodes.io (https:\/\/postcodes.io) \u2014 converts a postcode to a constituency. Privacy: https:\/\/postcodes.io\/about<\/li>\n<li>UK Parliament Members API (https:\/\/members-api.parliament.uk) \u2014 returns the MP's name, party, and contact email. Terms: https:\/\/www.parliament.uk<\/li>\n<\/ul>\n\n<p>No personal data is stored by this plugin; the letter is sent from the visitor's own email client.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin and activate it.<\/li>\n<li>Go to Write to Your MP and add a campaign. Set the intro, subject, letter body, and supporter fields.<\/li>\n<li>Publish the campaign and copy its shortcode.<\/li>\n<li>Paste the shortcode into a page (in Elementor use the Shortcode widget, not the HTML widget).<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20send%20email%20from%20my%20server%3F\"><h3>Does this send email from my server?<\/h3><\/dt>\n<dd><p>No. It builds a <code>mailto:<\/code> link that opens the visitor's own email client with the recipient, subject, and body filled in. The visitor reviews and sends it themselves.<\/p><\/dd>\n<dt id=\"do%20i%20need%20an%20api%20key%3F\"><h3>Do I need an API key?<\/h3><\/dt>\n<dd><p>No. Both upstream services are free and require no key.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First public release: multiple campaigns via a custom post type, configurable supporter fields, split placeholder reference, theme-inherited styling, and a modular codebase.<\/li>\n<\/ul>","raw_excerpt":"Find your UK MP by postcode and open a pre-written campaign letter in your own email client. Multiple campaigns, each with its own shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/340383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=340383"}],"author":[{"embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/japetolabs"}],"wp:attachment":[{"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=340383"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=340383"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=340383"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=340383"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=340383"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=340383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}