Abilitieseasy-svg-pro/export-pack-bundle

easy-svg-pro/export-pack-bundle

Export several collections.

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

Usage

wp_get_ability( 'easy-svg-pro/export-pack-bundle' )->execute( array $input ): array|WP_Error

Example

<?php
$ability = wp_get_ability( 'easy-svg-pro/export-pack-bundle' );
if ( $ability ) {
	$result = $ability->execute( array(
		'collections' => array(
			'brand',
		),
	) );
}

Description

Exports several collections as one zip holding one pack per collection.

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

body
collectionsstring[]

Required. The collection slugs to export, one pack each, in one ZIP. At most 25.

Return value

returnarray|WP_Error

An array on success, a WP_Error with the route's code and status on failure.