easy-svg-pro/v1/packs/export
Downloads one registered collection as a pack ZIP with manifest.json and one SVG per icon.
REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/core/rest.php
Usage
GET /wp-json/easy-svg-pro/v1/packs/export
Example
curl -u admin:app-password -o acme.zip 'https://example.com/wp-json/easy-svg-pro/v1/packs/export?collection=acme'
Description
Works for any collection: a set, a folder, the theme or the free icon library. The manifest carries labels and keywords, license UNLICENSED, the site host as author, the home URL as source and a generator line. The bytes are served directly as a download, so a link to this URL with a nonce works in a browser. Permission: Requires manage_options and an active licence. No single feature flag is needed.
Permission: Requires manage_options and an active licence. No single feature flag is needed.
Parameters
The registered collection slug to export.
Return value
On success the ZIP bytes with Content-Type application/zip and an attachment disposition, not JSON. 404 easy_svg_pro_no_collection, 501 easy_svg_pro_no_zip, 500 easy_svg_pro_zip_failed.