{"id":42262,"date":"2016-03-01T07:46:37","date_gmt":"2016-03-01T07:46:37","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-rest-api-post-type-taxonomies\/"},"modified":"2016-03-01T08:14:50","modified_gmt":"2016-03-01T08:14:50","slug":"wp-rest-api-post-type-taxonomies","status":"publish","type":"plugin","link":"https:\/\/he.wordpress.org\/plugins\/wp-rest-api-post-type-taxonomies\/","author":8839263,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"4.4.34","requires":"4.4","requires_php":"","requires_plugins":"","header_name":"WP REST API - Post Type Taxonomies","header_author":"Andrew MAGIK","header_description":"","assets_banners_color":"","last_updated":"2016-03-01 08:14:50","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/magiks.ru","header_author_uri":"http:\/\/magiks.ru\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":2132,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1556,1794,2008,23853,2300],"plugin_category":[57],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-42262","plugin","type-plugin","status-publish","hentry","plugin_tags-api","plugin_tags-custom-post-type","plugin_tags-post-type","plugin_tags-rest-api","plugin_tags-wp-api","plugin_category-taxonomy","plugin_committers-magikru"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-rest-api-post-type-taxonomies.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin will add separate WordPress REST API (v2) endpoint, with all relations between existing post types and attached to them terms (taxonomies).\nIt is very useful when you need to create some filters, when you want to know what taxonomies are attached to the current post type.<\/p>\n\n<p>For example what can you get, using <code>wp-json\/wp\/v2\/post-type-taxonomies<\/code> request (empty results not included):<\/p>\n\n<pre><code>{\n    post: [\n        \"category\",\n        \"post_tag\",\n        \"post_format\"\n    ],\n    portfolio: [\n        \"technologies\",\n        \"clients\",\n        \"work_types\"\n    ]\n}\n<\/code><\/pre>\n\n<p>Check my other useful rest-api plugins: <a href=\"https:\/\/wordpress.org\/plugins\/tags\/andrew-magik-rest-api\">https:\/\/wordpress.org\/plugins\/tags\/andrew-magik-rest-api<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Double check you have the WordPress REST (v2) API installed and active<\/li>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What is the URL of this new WordPress REST API (v2) endpoint?<\/dt>\n<dd><p>You get get all relations between post types and attached terms using GET request:\n    http:\/\/yoursite.name\/wp-json\/wp\/v2\/post-type-taxonomies<\/p><\/dd>\n<dt>When this plugin is useful?<\/dt>\n<dd><p>This plugin is very useful when you need to create some filters and when you want to know what taxonomies are attached to the current post type.<\/p><\/dd>\n<dt>Do you have other useful REST-API plugins?<\/dt>\n<dd><p>Yes, I have. You can check them by tag: <a href=\"https:\/\/wordpress.org\/plugins\/tags\/andrew-magik-rest-api\">https:\/\/wordpress.org\/plugins\/tags\/andrew-magik-rest-api<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release!<\/li>\n<\/ul>","raw_excerpt":"This plugin show all relations between existing post types and attached to them terms (taxonomies) in separate WordPress REST API (v2) endpoint.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42262"}],"author":[{"embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/magikru"}],"wp:attachment":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42262"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42262"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42262"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42262"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42262"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}