Schema
The schema defines all the fields that exist for a taxonomy object.
capabilitiesobject |
All capabilities used by the taxonomy. Read only Context: |
descriptionstring |
A human-readable description of the taxonomy. Read only Context: |
hierarchicalboolean |
Whether or not the taxonomy should have children. Read only Context: |
labelsobject |
Human-readable labels for the taxonomy for various contexts. Read only Context: |
namestring |
The title for the taxonomy. Read only Context: |
slugstring |
An alphanumeric identifier for the taxonomy. Read only Context: |
show_cloudboolean |
Whether or not the term cloud should be displayed. Read only Context: |
typesarray |
Types associated with the taxonomy. Read only Context: |
rest_basestring |
REST base route for the taxonomy. Read only Context: |
Example Request
$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json/wp/v2/taxonomies
List Taxonomys
Arguments
context |
Scope under which the request is made; determines fields present in response.
Default: One of: |
type |
Limit results to taxonomies associated with a specific post type. |
Definition
GET /wp/v2/taxonomies
Example Request
$ curl http://demo.wp-api.org/wp-json/wp/v2/taxonomies
Retrieve a Taxonomy
Arguments
context |
Scope under which the request is made; determines fields present in response.
Default: One of: |
Definition
GET /wp/v2/taxonomies/<taxonomy>
Example Request
$ curl http://demo.wp-api.org/wp-json/wp/v2/taxonomies/<taxonomy>