easy-svg-pro/v1/features
Reads or switches the Pro feature flags shown under Icons, Funktionen.
REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/core/rest.php
Usage
GET|POST /wp-json/easy-svg-pro/v1/features
Example
curl -u admin:app-password -H 'Content-Type: application/json' -d '{"editor":true,"sources":true}' https://example.com/wp-json/easy-svg-pro/v1/features
Description
GET answers flags, meta with translated label and description, groups for the screen and available, which says whether an integration's host plugin is present. POST takes one boolean per feature key and merges it onto the stored flags, so a flag you do not name keeps its value; unknown keys are dropped. Every feature still needs the licence as well as its flag. 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
POST only. One per key in the feature list, e.g. editor, audit, sources. An absent flag keeps its stored value.
Return value
flags (key to boolean) and meta (key to [label, description], in the user's language). GET adds groups and available.
Response
flags (key to boolean) and meta (key to [label, description], in the user's language). GET adds groups and available.
{
"flags": {
"editor": true,
"audit": false
},
"meta": {
"editor": [
"Icon set editor",
"The visual set editor on its own screen, with its REST API and import."
]
}
}