Set a Customizer setting
set_theme_modChange a WordPress theme's Customizer setting by writing one theme mod value. Provide the key and new value to update options such as logo or colors.
Instructions
Write one Customizer setting (theme mod) for the active theme. What is valid depends entirely on the theme — read get_theme_mods first to see the keys it uses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Theme mod name, e.g. "custom_logo" or a theme-specific key. | |
| value | Yes | New value. Types matter: a logo expects an attachment ID, a color expects a hex string. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |