wp_bulk_replace
Deterministic find/replace across ALL of a page's editable text fields, server-side. Send a TINY [{find, replace}] list — XeoRank reads the page, applies the swaps to every text field, writes through the validated patch path, and returns only a replacement count + a few sample diffs (NEVER the full page). Use this for template work (swap terminology across many fields, e.g. one specialty page -> another) instead of pasting a huge ops payload into wp_patch_page. Round-trip safe; write-gated; dry_run previews counts+samples.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview counts + sample diffs without writing (default false) | |
| post_id | Yes | The page/post ID | |
| site_id | Yes | The WordPress site ID | |
| whole_word | No | Match on word boundaries only (default false) | |
| replacements | Yes | JSON array of {find, replace} term swaps, e.g. [{"find":"urologist","replace":"pulmonologist"},{"find":"urology","replace":"pulmonology"}] | |
| case_insensitive | No | Case-insensitive matching (default false) |