easy-svg-pro/update-settings
Change the Pro settings.
Ability · Easy SVG Pro · Defined in includes/abilities/manage.php
Usage
wp_get_ability( 'easy-svg-pro/update-settings' )->execute( array $input ): array|WP_Error
Example
<?php
$ability = wp_get_ability( 'easy-svg-pro/update-settings' );
if ( $ability ) {
$result = $ability->execute( array(
'tags_enabled' => true,
) );
}
Description
Changes the configurator settings. Only the keys sent change; dangerous tags and attributes are refused and reported under rejected.
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. Extra SVG attributes to allow. Dangerous ones are refused server-side.
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.