easy-svg-pro/v1/packs/export-icons
Downloads up to 100 picked icons from any collections as one pack ZIP.
REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/core/rest.php
Usage
GET /wp-json/easy-svg-pro/v1/packs/export-icons
Example
curl -u admin:app-password -o selection.zip 'https://example.com/wp-json/easy-svg-pro/v1/packs/export-icons?refs[]=acme/arrow&refs[]=acme/home'
Description
The addresses travel in the URL because a download has to be a link, which is why the limit is 100. The pack is named selection. If any address is not there, nothing is exported and 404 easy_svg_pro_no_icon lists the missing ones. 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 picked icons, collection/slug, 1 to 100.
Return value
On success the ZIP bytes (selection.zip), not JSON. 404 easy_svg_pro_no_icon, 501 easy_svg_pro_no_zip, 500 easy_svg_pro_zip_failed.