BACK TO DIRECTORY

WP REST API – Post Type Taxonomies

by Andrew MAGIK

5.0
(1 ratings)

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.

Plugin Details

Active Installs
10
Total Downloads
2,275
Version
1.0
Requires WP
4.4
Requires PHP
Tested Up To
4.4.34
Added
2016-03-01
Last Updated
2016-03-01 8:14am GMT

Ratings

5
1
4
0
3
0
2
0
1
0