easy-svg-pro/list-sets
List icon sets.
Ability · Easy SVG Pro · Defined in includes/abilities/manage.php
Usage
wp_get_ability( 'easy-svg-pro/list-sets' )->execute( array $input ): array|WP_Error
Example
<?php
$ability = wp_get_ability( 'easy-svg-pro/list-sets' );
if ( $ability ) {
$result = $ability->execute( array(
'search' => 'arrow',
) );
}
Description
Lists every icon set, drafts included, with its id, slug, name and icon count.
Runs GET /wp-json/easy-svg-pro/v1/sets/list through rest_do_request(), so the route's own 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 Collections feature are on.
Permission: the user needs manage_options, and every call asks the route's own check again.
Read only: it changes nothing.
Parameters
Optional. Narrow the list to sets whose name or slug contains this.
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.