REST API

This information applies to Tag Groups version 1.18 and higher.

Returns all groups or one group with its ID, label, position and terms.

Routes

/wp-json/tag-groups/v1/groups/

/wp-json/tag-groups/v1/groups/{id}

Methods

GET

Arguments

ArgumentValuesDefaultDescription
taxonomycomma-separated listall that are selected for tag groups
hide_emptybooleanfalse
fieldsids, …ids
orderbyname, …name
orderASC, DESCASC

Returns all terms or one term with its ID, label, position and terms.

Routes

/wp-json/tag-groups/v1/terms/

/wp-json/tag-groups/v1/terms/{id}

Methods

GET

Arguments

ArgumentValuesDefaultDescription
taxonomycomma-separated list, or keyword “public”all enabledThis endpoint returns only taxonomies that are enabled in the Tag Groups (Premium) settings. The keyword “public”, however, makes it return all public taxonomies, including those that are not-enabled.
hide_emptybooleanfalse
fieldsids
groupIDrestrict terms to those belonging to a certain group
orderbyname
orderASC

Returns all taxonomies (slug and name).

Routes

/wp-json/tag-groups/v1/taxonomies/

Methods

GET

Arguments

ArgumentValuesDefaultDescription
typemetabox, enabledenabled

How do you rate this article?