Abilitieseasy-svg-pro/bulk-move

easy-svg-pro/bulk-move

Move many icons into a set.

Ability · Easy SVG Pro · Defined in includes/abilities/manage.php

Usage

wp_get_ability( 'easy-svg-pro/bulk-move' )->execute( array $input ): array|WP_Error

Example

<?php
$ability = wp_get_ability( 'easy-svg-pro/bulk-move' );
if ( $ability ) {
	$result = $ability->execute( array(
		'icons'  => array(
			'brand/logo',
		),
		'set_id' => 42,
	) );
}

Description

Moves icons from any collection into an icon set and removes them where they were.

Runs POST /wp-json/easy-svg-pro/v1/bulk/move 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.

Destructive: it overwrites or removes what is there. Read first, preview where a preview exists.

Parameters

body
iconsstring[]

Required. The icon references to act on, as collection/slug.

body
set_idinteger

Required. The icon set to copy or move into. At least 1.

Return value

returnarray|WP_Error

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.