easy-svg-pro/bulk-copy
Copy many icons into a set.
Ability · Easy SVG Pro · Defined in includes/abilities/manage.php
Usage
wp_get_ability( 'easy-svg-pro/bulk-copy' )->execute( array $input ): array|WP_Error
Example
<?php
$ability = wp_get_ability( 'easy-svg-pro/bulk-copy' );
if ( $ability ) {
$result = $ability->execute( array(
'icons' => array(
'brand/logo',
),
'set_id' => 42,
) );
}
Description
Copies icons from any collection into an icon set. The originals stay where they are.
Runs POST /wp-json/easy-svg-pro/v1/bulk/copy 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 is on. Bulk editing has no switch of its own: it is on while the license is active and the free icon library is on.
Permission: the user needs manage_options, and every call asks the route's own check again.
Writes to the site.
Parameters
Required. The icon references to act on, as collection/slug.
Required. The icon set to copy or move into. At least 1.
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.