easy-svg-pro/v1/client/sets
Lists the published icon sets a client may swap icons in, with each icon's preview.
REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/client/client-mode.php
Usage
GET /wp-json/easy-svg-pro/v1/client/sets
Example
curl -X GET "https://example.com/wp-json/easy-svg-pro/v1/client/sets" \
-H "X-WP-Nonce: $NONCE" -b "$COOKIES"
Description
Returns up to 50 published icon sets. Every preview markup passes an extra narrow wp_kses layer, because it is drawn in the browser of somebody who is not an administrator. Drafts, private and trashed sets are never listed.
Permission: The easy_svg_swap_icons capability and an active licence with Client mode switched on. Administrators with manage_options get the capability automatically while the feature is on.
Return value
{sets: [{id, label, icons: [{slug, label, markup}]}]}.
Response
{sets: [{id, label, icons: [{slug, label, markup}]}]}.
{
"sets": [
{
"id": 42,
"label": "ACME",
"icons": [
{
"slug": "arrow",
"label": "Arrow",
"markup": "<svg ...></svg>"
}
]
}
]
}