plugin-icon

WP REST API – All Terms

This plugin include all existing terms into separate WordPress REST API (v2) endpoint.
Bewertungen
5
Zuletzt aktualisiert
March 1, 2016
Version
1.0
Aktive Installationen
40

This plugin will add separate WordPress REST API (v2) endpoint, with all available terms (all used categories, tags and custom taxonomies). It is very useful when you need to create some filters into your app, with lists of all available terms.

For example what can you get, using wp-json/wp/v2/all-terms request (where categories and tags – standart taxonomies, and technologies – custom created taxonomy):

{ categories: [ { term_id: 9, name: "Downloads", slug: "downloads", term_group: 0, term_taxonomy_id: 9, taxonomy: "category", description: "", parent: 0, count: 1, filter: "raw" }, term_id: 1, name: "Uncategorized", slug: "uncategorized", term_group: 0, term_taxonomy_id: 1, taxonomy: "category", description: "", parent: 0, count: 4, filter: "raw" }, { term_id: 3, name: "Wordpress", slug: "wordpress", term_group: 0, term_taxonomy_id: 3, taxonomy: "category", description: "", parent: 0, count: 2, filter: "raw" } ], tags: [ { term_id: 16, name: "First tag", slug: "first-tag", term_group: 0, term_taxonomy_id: 16, taxonomy: "post_tag", description: "", parent: 0, count: 1, filter: "raw" }, { term_id: 17, name: "Second tag", slug: "second-tag", term_group: 0, term_taxonomy_id: 17, taxonomy: "post_tag", description: "", parent: 0, count: 1, filter: "raw" } ], technologies: [ { term_id: 15, name: "jQuery", slug: "jquery", term_group: 0, term_taxonomy_id: 15, taxonomy: "technologies", description: "", parent: 0, count: 1, filter: "raw" }, { term_id: 14, name: "Wordpress", slug: "wordpress", term_group: 0, term_taxonomy_id: 14, taxonomy: "technologies", description: "", parent: 0, count: 1, filter: "raw" } ] }

Check my other useful rest-api plugins: https://wordpress.org/plugins/tags/andrew-magik-rest-api.

Kostenlosmit dem Creator-Tarif
Mit deiner Installation stimmst du den Geschäftsbedingungen von WordPress.com sowie den Bedingungen für Drittanbieter-Plugins zu.
Aktive Installationen
40
Getestet bis
4.4.33
Dieses Plugin steht zum Download zur Verfügung, um in deiner selbst gehosteten WordPress-Installation verwendet zu werden.