easy-svg-pro/export-icons-pack
Export picked icons as a pack.
Ability · Easy SVG Pro · Defined in includes/abilities/packs.php
Usage
wp_get_ability( 'easy-svg-pro/export-icons-pack' )->execute( array $input ): array|WP_Error
Example
<?php
$ability = wp_get_ability( 'easy-svg-pro/export-icons-pack' );
if ( $ability ) {
$result = $ability->execute( array(
'refs' => array(
'brand/logo',
),
) );
}
Description
Exports icons from any collections together as one pack zip.
Hands its work to the same builder or importer the Templates screen (Easy SVG, Templates) uses. Archives travel as base64 in both directions.
Registered while the AI agents (MCP) switch is on, which it is out of the box.
Permission: the user needs manage_options and an active license.
Read only: it changes nothing.
Parameters
Required. The picked icons, collection/slug, exported together as one pack. At most 100.
Return value
An array on success, a WP_Error with the route's code and status on failure.