Strip Leading Cover Hero
wp_strip_leading_coverRemove leading core/cover hero blocks from pages or posts to restore the theme's page-title bar. Safe server-side operation that leaves pages without a leading cover untouched.
Instructions
Remove the embedded leading core/cover hero block from one or more pages, so the theme's page-title bar takes over. SAFE: only removes a block that is BOTH the first block AND a core/cover; pages without a leading cover are left unchanged. Reads/strips/writes server-side (no page content passes through the client), so it scales to many pages in one call. Requires admin.
Args:
ids (number[]): page/post IDs.
type ('page' | 'post'): default 'page'.
dry_run (bool): if true, report what would change WITHOUT saving.
response_format (enum): markdown | json.
Returns: per-id { title, removedCover, saved }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Page/post IDs to strip the leading core/cover hero from. | |
| type | No | Content type. Default 'page'. | page |
| dry_run | No | If true, report what would change WITHOUT saving. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |