easy-svg-pro/update-features
Switch features on or off.
Ability, Easy SVG Pro, defined in includes/abilities/manage.php
Usage
wp_get_ability( 'easy-svg-pro/update-features' )->execute( array $input ): array|WP_Error
Example
<?php
$ability = wp_get_ability( 'easy-svg-pro/update-features' );
if ( $ability ) {
$result = $ability->execute( array(
'sets' => true,
) );
}
Description
Switches Pro features on or off. Send only the switches to change, as key and true or false; every other switch keeps its value.
Older keys such as editor, collections, sources, presets or fontawesome are still accepted and are mapped to their new key (sets, templates) before the request is sent. bulk is not a switch of its own and always reads on; it is accepted so that what get-features returns can be sent back.
Runs through the plugin's own REST handler, so its permission check, argument schema and handler do the work. The ability adds no write path of its own.
Registered while the AI agents (MCP) switch is on, which it is out of the box.
Permission: the user needs manage_options, and every call asks the route's own check again.
Writes to the site. Calling it twice with the same input has the same effect as once.
Parameters
Optional. Whether the sets feature is on. A flag that is absent keeps its stored value.
Optional. Whether the cli feature is on. A flag that is absent keeps its stored value.
Optional. Whether the abilities feature is on. A flag that is absent keeps its stored value.
Optional. Whether the icon_field_acf feature is on. A flag that is absent keeps its stored value.
Optional. Whether the icon_field_lazyblocks feature is on. A flag that is absent keeps its stored value.
Optional. Whether the icon_field_blocks feature is on. A flag that is absent keeps its stored value.
Optional. Whether the elementor feature is on. A flag that is absent keeps its stored value.
Optional. Whether the metabox feature is on. A flag that is absent keeps its stored value.
Optional. Whether the wpbakery feature is on. A flag that is absent keeps its stored value.
Optional. Whether the impreza feature is on. A flag that is absent keeps its stored value.
Optional. Whether the avada feature is on. A flag that is absent keeps its stored value.
Optional. Whether the generateblocks feature is on. A flag that is absent keeps its stored value.
Optional. Whether the quick_insert feature is on. A flag that is absent keeps its stored value.
Optional. Whether the blocks feature is on. A flag that is absent keeps its stored value.
Optional. Whether the twig feature is on. A flag that is absent keeps its stored value.
Optional. Whether the templates feature is on. A flag that is absent keeps its stored value.
Optional. icon_field is an older key, still accepted: it sets icon_field_acf, icon_field_lazyblocks. Prefer icon_field_acf, icon_field_lazyblocks.
Optional. collections is an older key, still accepted: it sets sets. Prefer sets.
Optional. editor is an older key, still accepted: it sets sets. Prefer sets.
Optional. sources is an older key, still accepted: it sets sets. Prefer sets.
Optional. presets is an older key, still accepted: it sets templates. Prefer templates.
Optional. fontawesome is an older key, still accepted: it sets templates. Prefer templates.
Optional. Not a switch of its own, always on. Accepted so a round trip from get-features validates.
Return value
What the matching Icons panel screen receives for the same action. An array on success, a WP_Error with the route's code and status on failure.