wp_seo_set_meta
Write SEO meta for a WordPress post: title, description, Open Graph, Twitter Card, canonical, robots, JSON-LD article, and focus keyword. Works with the active provider, ignoring unsupported fields.
Instructions
Write SEO meta for a post via the active provider. Pass any subset of: title, description, og_title, og_description, og_image (URL), og_type, twitter_card, canonical (URL), robots ({noindex,nofollow,noarchive,nosnippet,noimageindex}), json_ld_article (object), focus_keyword. Fields not supported by the active provider are silently ignored — call wp_seo_detect_provider to know which features apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| post_id | Yes |