REST API

Information valid for Tag Groups version 0.38. This page is a work in progress.

 

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 usually only returns 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