WP REST API – Post Type Taxonomies
v1.0Andrew MAGIK · 2016年3月1日 上架
This plugin show all relations between existing post types and attached to them terms (taxonomies) in separate WordPress REST API (v2) endpoint.
- 正在使用
- 20+
- 评分
- 5.0 / 5
- 累计下载
- 2,374
- 最近更新
- 2016年3月1日
1 条评价需要 WordPress 4.4+已测试到 4.4.34
贡献者
This plugin will add separate WordPress REST API (v2) endpoint, with all relations between existing post types and attached to them terms (taxonomies).
It is very useful when you need to create some filters, when you want to know what taxonomies are attached to the current post type.
For example what can you get, using wp-json/wp/v2/post-type-taxonomies request (empty results not included):
{
post: [
"category",
"post_tag",
"post_format"
],
portfolio: [
"technologies",
"clients",
"work_types"
]
}
Check my other useful rest-api plugins: https://wordpress.org/plugins/tags/andrew-magik-rest-api.