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