Read SEO title and description
wp_seo_getRetrieve a post's SEO title, meta description, and focus keyword as stored by Yoast SEO or Rank Math; returns provider and post_id, with missing fields empty and unsupported plugins noted.
Instructions
Get the SEO title, meta description and focus keyword of one post as Yoast SEO or Rank Math store them. Returns {post_id, provider, title, description, focus_keyword}; a field never set is empty. With AIOSEO or no supported SEO plugin the fields are absent and note says why. Needs the right to edit the post; an unknown post_id returns a not-found error. Read-only; wp_seo_detect reports the active plugin alone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Id of the post or page whose SEO fields are read. |