Generate location pages as WordPress drafts
generate_location_page_draftsClones the template page once per target, rewrites each for its town/product/event and saves them as DRAFTS on WordPress for the owner to review. Slow (minutes for a big batch); waits and returns per-target results. To publish live instead use publish_location_pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site to act on. One of: fencestainingdenver.com. | |
| targets | Yes | ||
| locationId | No | Which saved business location the pages speak for (default: the primary one). | |
| baseKeyword | No | The service or product the pages are about, for example "plumber". | |
| slugPattern | No | ||
| titleSuffix | No | ||
| stripPhrases | No | Phrases to remove from the cloned copy. | |
| titlePattern | No | ||
| templatePageId | Yes | The WordPress page to clone, from list_page_templates. | |
| templatePurpose | No | What each page is: a town or area (default), a product or brand, or an event. | |
| generateFeaturedImage | No |