Update Setting is a WordPress ability from Cart Abandonment Recovery for WooCommerce — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Update Setting
DestructiveWrite a new value to one plugin setting, identified by key or label.
Requires the Cart Abandonment Recovery for WooCommerce plugin (which itself requires WooCommerce active) on a WordPress core with the Abilities API available — each ability's registration is guarded by a function_exists('wp_register_ability') check. Every ability also requires the current user to have the 'manage_woocommerce' capability.
What it does
This ability updates a single setting's value, resolved by option key or human-readable label, and persists the change immediately via the plugin's own save routine. It validates that a key or name was supplied, that a value was provided, that the setting resolves to a known field, and that the resolved option is actually a writable plugin option before saving. On success it returns both the old and new values so the change can be verified. The plugin marks this ability as non-readonly, destructive, and non-idempotent, since the write takes effect right away and each call can produce a different before/after result.
See it in action
You ask your AI assistant
"Turn off cart tracking for guest users in Cart Abandonment Recovery."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| key | string | No | Option key to update (e.g. 'wcf_ca_status'). |
| name | string | No | Human-readable label of the setting to update (case-insensitive). |
| value | string | Yes | The new value for the setting. |
Returns
An object with key, label, old_value, and new_value for the updated setting, or an error if the key/name/value was missing, the setting couldn't be resolved, the option isn't writable, or the save failed.
Permission
The current user must have the 'manage_woocommerce' capability.
More Cart Abandonment Recovery for WooCommerce abilities
Get All Settings
Retrieve every plugin setting, grouped by tab, with each setting's current value.
Get Dashboard Stats
Pull aggregated cart abandonment, recovery, and lost-order stats for a date range.
Get Product Stats
List the top abandoned products, ranked by how often they were left in a cart.
Get Setting
Look up the current value and metadata for one specific setting by key or label.