wp_set_seo
Set a post's SEO meta title, description, canonical, and noindex settings. Preview changes with dry_run before applying; works with SEOPress, Rank Math, and Yoast.
Instructions
Set a page/post's SEO meta (title/description/canonical/noindex).
Pass only the fields to change; omitted (None) fields are left untouched, and supplying none at all is refused. Writes to the active SEO plugin's meta (SEOPress / Rank Math / Yoast) and is verified by readback. DEFAULTS TO dry_run=true (returns a preview; writes nothing). Pass dry_run=false to apply. Requires the REST transport. Prod writes require allow_prod=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| dry_run | No | ||
| install | Yes | ||
| noindex | No | ||
| post_id | Yes | ||
| canonical | No | ||
| allow_prod | No | ||
| description | No |