{"id":408124,"date":"2026-11-20T09:28:21","date_gmt":"2026-11-20T09:28:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/coder-vibe-trade-service-areas-quotes\/"},"modified":"2026-11-20T09:32:45","modified_gmt":"2026-11-20T09:32:45","slug":"coder-vibe-trade-service-areas-quotes","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/coder-vibe-trade-service-areas-quotes\/","author":23593371,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Coder Vibe Trade Service Areas & Quotes","header_author":"Coder Vibe","header_description":"Service and town post types, a service-by-area landing page generator, LocalBusiness and Service JSON-LD schema, and a spam-protected quote request form for local tradespeople.","last_updated":"2026-11-20 09:32:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/codervibe.co.uk","rating":0,"author_block_rating":0,"active_installs":0,"downloads":33,"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":"oozye2","date":"2026-11-20 09:32:45","revision":3813346}},"upgrade_notice":{"1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3813346,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3813346,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3813346,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3813346,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3813349,"resolution":false,"location":"assets","locale":"","contents":"{\"$schema\":\"https:\\\/\\\/playground.wordpress.net\\\/blueprint-schema.json\",\"meta\":{\"title\":\"Coder Vibe Trade Service Areas & Quotes demo\",\"description\":\"A demo local plumber with three services, three towns, nine generated landing pages (two published), a quote form and three example quote requests.\",\"author\":\"oozye2\"},\"landingPage\":\"\\\/wp-admin\\\/admin.php?page=cvtsa-generator\",\"preferredVersions\":{\"php\":\"8.2\",\"wp\":\"latest\"},\"login\":true,\"steps\":[{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"coder-vibe-trade-service-areas-quotes\"},\"options\":{\"activate\":true}},{\"step\":\"setSiteOptions\",\"options\":{\"blogname\":\"Harbour Plumbing & Heating\",\"permalink_structure\":\"\\\/%postname%\\\/\",\"cvtsa_settings\":{\"business_name\":\"Harbour Plumbing & Heating\",\"phone\":\"01304 000000\",\"notify_email\":\"quotes@harbourplumbing.example\",\"street\":\"12 Marine Parade\",\"locality\":\"Dover\",\"region\":\"Kent\",\"postcode\":\"CT16 1LZ\",\"country\":\"GB\",\"price_range\":\"\\u00a3\\u00a3\",\"hours\":\"Mo-Fr 08:00-17:00\\nSa 09:00-12:00\",\"title_template\":\"{service} in {area}\",\"max_pages\":25,\"require_descriptions\":1,\"delete_data\":0}}},{\"step\":\"runPHP\",\"code\":\"<?php\\nrequire '\\\/wordpress\\\/wp-load.php';\\nwp_set_current_user( 1 );\\n\\\/\\\/ Services and service areas. The excerpt feeds the page templates.\\n$entries = array(\\n\\t'cvtsa_service' => array(\\n\\t\\t'Boiler repair'      => 'Fast repairs for all makes of gas boiler, from no hot water to strange noises. Most faults fixed on the first visit.',\\n\\t\\t'Boiler servicing'   => 'Annual boiler servicing that keeps your warranty valid and your heating running safely and efficiently.',\\n\\t\\t'Emergency plumbing' => 'Burst pipes, leaks and blocked drains. A plumber on the way within the hour, any day of the week.',\\n\\t),\\n\\t'cvtsa_area' => array(\\n\\t\\t'Dover'      => 'Covering the town centre, Buckland, River and the surrounding villages.',\\n\\t\\t'Folkestone' => 'Serving the harbour, the Old High Street and homes across Cheriton and Hythe.',\\n\\t\\t'Deal'       => 'Looking after homes along the seafront and out to Walmer and Sholden.',\\n\\t),\\n);\\n$ids = array();\\nforeach ( $entries as $type => $items ) {\\n\\tforeach ( $items as $title => $desc ) {\\n\\t\\t$ids[ $type ][ $title ] = wp_insert_post( array( 'post_type' => $type, 'post_status' => 'publish', 'post_title' => $title, 'post_excerpt' => $desc, 'post_content' => $desc ) );\\n\\t}\\n}\\n\\\/\\\/ Generate the landing pages with the plugin's own generator (they are created as drafts).\\n$plan = cvtsa_plan_generation( array_values( $ids['cvtsa_service'] ), array_values( $ids['cvtsa_area'] ) );\\ncvtsa_run_generation( $plan );\\n\\\/\\\/ Publish two of them, as a business owner would after reviewing.\\nforeach ( get_posts( array( 'post_type' => 'page', 'post_status' => 'draft', 'numberposts' => -1 ) ) as $page ) {\\n\\tif ( in_array( $page->post_title, array( 'Boiler repair in Dover', 'Emergency plumbing in Folkestone' ), true ) ) {\\n\\t\\twp_update_post( array( 'ID' => $page->ID, 'post_status' => 'publish' ) );\\n\\t}\\n}\\n\\\/\\\/ A page with the quote form.\\nwp_insert_post( array( 'post_type' => 'page', 'post_status' => 'publish', 'post_title' => 'Get a quote', 'post_name' => 'get-a-quote', 'post_content' => \\\"<!-- wp:paragraph -->\\\\n<p>Tell us about the job and we will get back to you the same day.<\\\/p>\\\\n<!-- \\\/wp:paragraph -->\\\\n\\\\n<!-- wp:shortcode -->\\\\n[cvtsa_quote_form]\\\\n<!-- \\\/wp:shortcode -->\\\" ) );\\n\\\/\\\/ Three example quote requests with different statuses.\\nforeach ( array(\\n\\tarray( 'Priya Shah',  '07700 900123', 'priya.shah@example.com', 'CT16 2AB', 'Boiler servicing',   'new',    'Our boiler is eight years old and due its annual service. Weekday mornings are best for us.', '-1 hour' ),\\n\\tarray( 'Tom Ellis',   '07700 900456', 'tom.ellis@example.com',  'CT14 7AA', 'Emergency plumbing', 'quoted', 'Water coming through the kitchen ceiling. Can someone come today?', '-3 hours' ),\\n\\tarray( 'Amira Khan',  '07700 900789', 'amira.khan@example.com', 'CT20 1XY', 'Boiler repair',      'won',    'Boiler has no hot water since Monday. Happy to book the earliest slot.', '-2 days' ),\\n) as $q ) {\\n\\t$id = wp_insert_post( wp_slash( array( 'post_type' => 'cvtsa_quote', 'post_status' => 'publish', 'post_title' => $q[0] . ' - ' . $q[4], 'post_content' => $q[6], 'post_date' => gmdate( 'Y-m-d H:i:s', strtotime( $q[7] ) ) ) ) );\\n\\tupdate_post_meta( $id, '_cvtsa_name', $q[0] );\\n\\tupdate_post_meta( $id, '_cvtsa_phone', $q[1] );\\n\\tupdate_post_meta( $id, '_cvtsa_email', $q[2] );\\n\\tupdate_post_meta( $id, '_cvtsa_postcode', $q[3] );\\n\\tupdate_post_meta( $id, '_cvtsa_service_id', $ids['cvtsa_service'][ $q[4] ] );\\n\\tupdate_post_meta( $id, '_cvtsa_status', $q[5] );\\n}\\nflush_rewrite_rules();\\n\"}]}"}},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3813346,"resolution":"1","location":"assets","locale":"","width":1280,"height":720},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3813346,"resolution":"2","location":"assets","locale":"","width":1280,"height":1240},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3813346,"resolution":"3","location":"assets","locale":"","width":1280,"height":860},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3813346,"resolution":"4","location":"assets","locale":"","width":1280,"height":470}},"screenshots":{"1":"The landing page generator, previewing nine pages before anything is created.","2":"A generated landing page with its quote form.","3":"The quote request form.","4":"Quote requests with New \/ Quoted \/ Won \/ Lost statuses and filters."}},"plugin_section":[],"plugin_tags":[37556,294144,56778,1117,152988],"plugin_category":[55],"plugin_contributors":[289435],"plugin_business_model":[],"class_list":["post-408124","plugin","type-plugin","status-publish","hentry","plugin_tags-local-business","plugin_tags-plumber","plugin_tags-quote-form","plugin_tags-schema","plugin_tags-service-area","plugin_category-seo-and-marketing","plugin_contributors-oozye2","plugin_committers-oozye2"],"banners":{"banner":"https:\/\/ps.w.org\/coder-vibe-trade-service-areas-quotes\/assets\/banner-772x250.png?rev=3813346","banner_2x":"https:\/\/ps.w.org\/coder-vibe-trade-service-areas-quotes\/assets\/banner-1544x500.png?rev=3813346","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/coder-vibe-trade-service-areas-quotes\/assets\/icon-128x128.png?rev=3813346","icon_2x":"https:\/\/ps.w.org\/coder-vibe-trade-service-areas-quotes\/assets\/icon-256x256.png?rev=3813346","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/coder-vibe-trade-service-areas-quotes\/assets\/screenshot-1.png?rev=3813346","caption":"The landing page generator, previewing nine pages before anything is created."},{"src":"https:\/\/ps.w.org\/coder-vibe-trade-service-areas-quotes\/assets\/screenshot-2.png?rev=3813346","caption":"A generated landing page with its quote form."},{"src":"https:\/\/ps.w.org\/coder-vibe-trade-service-areas-quotes\/assets\/screenshot-3.png?rev=3813346","caption":"The quote request form."},{"src":"https:\/\/ps.w.org\/coder-vibe-trade-service-areas-quotes\/assets\/screenshot-4.png?rev=3813346","caption":"Quote requests with New \/ Quoted \/ Won \/ Lost statuses and filters."}],"raw_content":"<!--section=description-->\n<p>Built for plumbers, electricians, roofers and other local trades who work across several towns.<\/p>\n\n<ul>\n<li><strong>Services and Service Areas<\/strong> custom post types to describe what you do and where you work.<\/li>\n<li><strong>Landing page generator<\/strong>: pick services and towns, preview how many pages will be made, then create one draft page per combination (for example \"Boiler repair in Dover\") from editable templates. Tokens: <code>{service}<\/code>, <code>{area}<\/code>, <code>{business}<\/code>, <code>{phone}<\/code>, plus <code>{service_description}<\/code> and <code>{area_description}<\/code> taken from each entry's excerpt so every page can carry genuinely different text.<\/li>\n<li><strong>Safety controls<\/strong> against thin or duplicate content: pages are always created as drafts, a per-run cap applies, existing combinations are never duplicated, and combinations without a description can be skipped.<\/li>\n<li><strong>Structured data<\/strong>: valid LocalBusiness and Service JSON-LD (with <code>areaServed<\/code>) on generated pages, built from your business name, phone, address, opening hours and price range.<\/li>\n<li><strong>Quote request form<\/strong> via the <code>[cvtsa_quote_form]<\/code> shortcode with name, phone, email, postcode, service and message fields, a honeypot, a nonce and rate limiting. Requests are stored in a private \"Quote Requests\" list with New \/ Quoted \/ Won \/ Lost statuses and filters, and the site admin is emailed.<\/li>\n<\/ul>\n\n<p>No external services, no tracking, no remote requests, no ads.<\/p>\n\n<h4>Shortcode<\/h4>\n\n<pre><code>[cvtsa_quote_form] or `[cvtsa_quote_form service=\"123\"]` to preselect a service by its post ID.\n<\/code><\/pre>\n\n<h3>Privacy<\/h3>\n\n<p>The quote form stores name, phone, email, postcode, selected service and message in your site database and emails them to the site admin. If a submission fails validation, the entered values are kept in a single-use transient for up to 15 minutes so the form can be refilled. Data is not sent to third parties. The plugin registers suggested privacy policy text and WordPress personal data export and erasure support for quote requests.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/<\/code> or install it from the Plugins screen.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Go to Trade Areas &gt; Settings and enter your business details.<\/li>\n<li>Add Services and Service Areas (write a unique excerpt for each).<\/li>\n<li>Go to Trade Areas &gt; Generate Pages, preview, then generate drafts.<\/li>\n<li>Edit each draft, add unique local content, and publish.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"will%20generated%20pages%20be%20published%20automatically%3F\"><h3>Will generated pages be published automatically?<\/h3><\/dt>\n<dd><p>No. They are always created as drafts, and a reminder is shown on the edit screen.<\/p><\/dd>\n<dt id=\"will%20this%20create%20duplicate%20or%20thin%20content%3F\"><h3>Will this create duplicate or thin content?<\/h3><\/dt>\n<dd><p>The plugin is designed to reduce that risk: use the excerpt of each service and town to supply different text, keep the \"skip combinations without a description\" option on, and edit each draft before publishing. A per-run cap limits how many pages can be created at once. Search engines may still treat near-identical pages as low value, so add real local detail.<\/p><\/dd>\n<dt id=\"where%20is%20the%20schema%20added%3F\"><h3>Where is the schema added?<\/h3><\/dt>\n<dd><p>In the page head of pages created by the generator, once published, as JSON-LD. Business name is required for schema output. Developers can adjust it with the <code>cvtsa_schema_data<\/code> filter.<\/p><\/dd>\n<dt id=\"how%20do%20i%20change%20the%20opening%20hours%20format%3F\"><h3>How do I change the opening hours format?<\/h3><\/dt>\n<dd><p>Use one line per entry such as <code>Mo-Fr 08:00-17:00<\/code>. Invalid lines are removed when saving.<\/p><\/dd>\n<dt id=\"how%20does%20spam%20protection%20work%3F\"><h3>How does spam protection work?<\/h3><\/dt>\n<dd><p>A hidden honeypot field, a WordPress nonce, and a limit of three requests per hour per visitor (filter <code>cvtsa_rate_limit_max<\/code>). Visitor IPs are hashed temporarily for the limit and never stored with requests. If you use full-page caching, exclude pages with the form or keep nonce lifetimes in mind.<\/p><\/dd>\n<dt id=\"where%20do%20quote%20emails%20go%3F\"><h3>Where do quote emails go?<\/h3><\/dt>\n<dd><p>To the notification email in settings, or the site admin email if left blank. Email delivery uses <code>wp_mail<\/code>, so an SMTP plugin is recommended for reliability.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20i%20delete%20the%20plugin%3F\"><h3>What happens when I delete the plugin?<\/h3><\/dt>\n<dd><p>Only the plugin settings are removed. Services, areas, quote requests and generated pages stay unless you tick \"Delete all Services, Service Areas and Quote Requests when the plugin is deleted\" in settings. Generated pages are never deleted.<\/p><\/dd>\n<dt id=\"does%20it%20contact%20external%20services%3F\"><h3>Does it contact external services?<\/h3><\/dt>\n<dd><p>No.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Service and town post types, a landing page generator, LocalBusiness schema and a spam-protected quote form for local tradespeople.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/408124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=408124"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/oozye2"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=408124"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=408124"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=408124"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=408124"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=408124"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=408124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}