Set SEO title and description
wp_seo_setSet the SEO title, meta description and/or focus keyword of a post in the active SEO plugin's own fields: Yoast SEO, otherwise Rank Math (Yoast wins when both are active). Only the fields given are written, each overwriting the stored value; tags and line breaks are stripped. Returns updated, provider and changed (the fields written). With neither active the call is refused, also where All in One SEO is the SEO plugin; an unknown post is a not-found error. wp_seo_get reads the values. Needs edit_posts and the right to edit the post and each SEO field. No undo point is recorded. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | SEO title (the title tag the SEO plugin outputs), not the post title. Omitted: unchanged; an empty string stores an empty value. | |
| post_id | Yes | Id of the post, page or other entry. | |
| description | No | Meta description. Omitted: unchanged; an empty string stores an empty value. | |
| focus_keyword | No | Focus keyword (keyphrase) the SEO plugin analyses the post for. Omitted: unchanged. |