Update SureRank Sitemap Settings is a WordPress ability from SureRank — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Update SureRank Sitemap Settings

Destructive
SureRank SEO surerank/update-sitemap-settings

Update SureRank's XML sitemap toggles and excluded post types/taxonomies.

Requires the SureRank plugin on WordPress 6.9+ for the Abilities API. Abilities are only registered when SureRank's admin 'enable_mcp' setting is turned on, and every ability requires the current user to have the 'manage_options' capability.

What it does

This ability accepts a settings object, restricts it to the four known sitemap keys (enable_xml_sitemap, enable_xml_image_sitemap, sitemap_excluded_post_types, sitemap_excluded_taxonomies), coerces booleans and sanitizes the excluded-type arrays, then saves the result. It fails if none of the supplied keys are recognized. An AI assistant can use it to exclude a noisy custom post type from the XML sitemap or toggle the image sitemap on or off; SureRank marks it destructive since it changes what's exposed to search engines.

See it in action

You ask your AI assistant

"Exclude the 'attachment' post type from SureRank's XML sitemap and make sure the image sitemap stays enabled."

Inputs

Name Type Required Description
settings object Yes Sitemap settings to update.

Returns

An object with success (boolean) and message (string) describing the result of the save.

Permission

Requires the 'manage_options' capability; the ability is only registered when SureRank's admin 'enable_mcp' setting is turned on.

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.