Update Theme Settings


Stages new values for settings the active theme offers in the Customizer, by ID from mosmcp/theme-settings-list. Each value is checked by the theme's own rules; if any is refused, nothing is staged. Visitors see nothing until the theme draft is published, which saves the values through the Customizer exactly as its Publish button does. Pass null to return a setting to the theme's default. Settings other abilities manage (logo, icon, title, CSS, menus, widgets, home page) are refused with the ability to use instead.

Also known as: change theme options, Customizer settings, header layout, footer layout, container width.

Property Value
Ability slug mosmcp/theme-settings-update
Wire tool name mosmcp__theme-settings-update
Category Theme: Custom CSS and Settings (mosmcp-theme-customize)
Plan Free

 

Required access

Requirement Value
Capability edit_theme_options
Minimum default role Administrator (Shop manager too when WooCommerce is active)
Annotations readOnly: false · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
settings object Yes — Setting ID => new value, for example {"astra-settings[site-content-width]": 1100}.

 

Output schema

Field Type Required Description
staged boolean Yes
target string
change string
draft object Yes
draft.exists boolean
draft.change_count integer
draft.templates string[]
draft.template_parts string[]
draft.global_styles string
draft.patterns string[]
draft.files string[]
draft.site_identity string[] Pending logo and site icon changes.
draft.custom_css string[] Pending change to the Customizer's Additional CSS. A block theme's Additional CSS is part of global styles.
draft.theme_settings string[] Pending theme (Customizer) settings.
draft.created string
draft.updated string
draft.preview_ready boolean
next_step string
notes string[]
settings object[]
settings[].id string
settings[].label string
settings[].value string | number | integer | boolean | array | object | null The value staged, after the theme's own sanitizing.
unchanged string[] Settings already set that way on the live site.

 


<< Previous Next >>
Update Additional CSS List Posts with SEO Data

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.