Bulk update content
bulk_update_contentPreview and apply bulk edits to WordPress content: change status, author, categories, or run find/replace across posts. Requires confirmation token to commit changes.
Instructions
Apply the same change to many items at once — set a status, reassign an author, add a category, or run a find/replace across bodies. Always previews first: the initial call reports exactly which items would change and how, and returns a confirm_token you must echo back to apply it. Nothing is written without that token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Content type to operate on. | post |
| limit | No | Hard ceiling on how many items can be touched in one call. | |
| filter | No | Which items to act on. Without any filter this would match everything, so a limit always applies. | |
| changes | No | Field changes applied to every matched item. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| confirm_token | No | Token from the preview. Required to actually write. | |
| content_edits | No | Find/replace applied to each item's body. Items where nothing matches are skipped rather than failing the batch. |