easy-svg-pro/update-preset
Update an installed icon preset.
Ability, Easy SVG Pro, defined in includes/abilities/manage.php
Usage
wp_get_ability( 'easy-svg-pro/update-preset' )->execute( array $input ): array|WP_Error
Example
<?php
$ability = wp_get_ability( 'easy-svg-pro/update-preset' );
if ( $ability ) {
$result = $ability->execute( array(
'slug' => 'lucide',
) );
}
Description
Brings an installed preset set up to the version UnleashWP offers now.
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 and the Templates feature are on.
Permission: the user needs manage_options, and every call asks the route's own check again.
Destructive: it overwrites or removes what is there. Read first, preview where a preview exists. Calling it twice with the same input has the same effect as once.
Parameters
Required. Which installed preset set to update, as the catalog names it.
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.