REST APIeasy-svg-pro/v1/features

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

Internal: not part of the promised public surface. It may change without notice.

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

body
<feature key>boolean

POST only. One per key in the feature list, e.g. editor, audit, sources. An absent flag keeps its stored value.

Return value

returnWP_REST_Response|WP_Error

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."
    ]
  }
}