Update post social settings is a WordPress ability from SEOPress — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Update post social settings

Destructive
SEOPress SEO seopress/update-post-social-settings

Update the social (Facebook/Open Graph and X/Twitter) metadata of a post.

Requires the SEOPress plugin on WordPress 6.9+ for the Abilities API — abilities are registered only when wp_register_ability() exists, gated by the plugin's own seopress_abilities_api_available() check. Each per-post ability additionally requires the current user to hold the WordPress 'edit_post' capability for the target post (and the post must exist); the global title settings ability instead requires the SEOPress capability for managing title settings, which defaults to manage_options and is filterable via seopress_capability().

What it does

This ability wraps SEOPress's SocialSettings REST controller (processPut) to update a post's social sharing metadata from a settings map, such as _seopress_social_fb_title, _seopress_social_fb_desc or the corresponding Twitter keys. Only known SEOPress social meta keys are accepted. SEOPress marks this ability as destructive and idempotent in its own metadata since it overwrites the existing social card copy that's shown when the post is shared. This gives an AI assistant a direct way to rewrite a post's Facebook or Twitter share title/description as part of a content workflow.

See it in action

You ask your AI assistant

"Update post 128's Facebook share title to 'The Ultimate Espresso Machine Guide' and tighten up the Twitter description to one punchy sentence."

Inputs

Name Type Required Description
post_id integer Yes The ID of the post to update.
settings object Yes Map of SEOPress social meta keys to values, e.g. { "_seopress_social_fb_title": "...", "_seopress_social_fb_desc": "..." }.

Returns

An object with a single 'code' string field — "success" when the social settings update completed.

Permission

The current user must be able to edit the target post (the WordPress 'edit_post' capability for that post ID).

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.