スキーマ
スキーマはtypeオブジェクトに存在するすべてのフィールドを定義しています。
capabilitiesobject |
All capabilities used by the post type. 読み取り専用 コンテキスト: |
descriptionstring |
A human-readable description of the post type. 読み取り専用 コンテキスト: |
hierarchicalboolean |
Whether or not the post type should have children. 読み取り専用 コンテキスト: |
viewableboolean |
Whether or not the post type can be viewed. 読み取り専用 コンテキスト: |
labelsobject |
Human-readable labels for the post type for various contexts. 読み取り専用 コンテキスト: |
namestring |
The title for the post type. 読み取り専用 コンテキスト: |
slugstring |
An alphanumeric identifier for the post type. 読み取り専用 コンテキスト: |
supportsobject |
All features, supported by the post type. 読み取り専用 コンテキスト: |
taxonomiesarray |
Taxonomies associated with post type. 読み取り専用 コンテキスト: |
rest_basestring |
REST base route for the post type. 読み取り専用 コンテキスト: |
Example Request
$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json/wp/v2/types
Type一覧
引数
context |
Scope under which the request is made; determines fields present in response.
初期値: 次のいずれか: |
定義
GET /wp/v2/types
リクエスト例
$ curl http://demo.wp-api.org/wp-json/wp/v2/types
Typeを取得する
引数
type |
An alphanumeric identifier for the post type. |
context |
Scope under which the request is made; determines fields present in response.
初期値: 次のいずれか: |
定義
GET /wp/v2/types/<type>
リクエスト例
$ curl http://demo.wp-api.org/wp-json/wp/v2/types/<type>