Title: WP REST API &#8211; All Terms
Author: Andrew MAGIK
Published: <strong>2016 年 2 月 29 日</strong>
Last modified: 2016 年 3 月 1 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-rest-api-all-terms.svg)

# WP REST API – All Terms

 作者：[Andrew MAGIK](https://profiles.wordpress.org/magikru/)

[下载](https://downloads.wordpress.org/plugin/wp-rest-api-all-terms.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-rest-api-all-terms/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-rest-api-all-terms/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-rest-api-all-terms/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-rest-api-all-terms/#developers)

 [支持](https://wordpress.org/support/plugin/wp-rest-api-all-terms/)

## 描述

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](https://wordpress.org/plugins/tags/andrew-magik-rest-api).

## 安装

 1. Double check you have the WordPress REST (v2) API installed and active
 2. Upload the plugin folder to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 3. Activate the plugin through the ‘Plugins’ screen in WordPress

## 常见问题

  What is the URL of this new WordPress REST API (v2) endpoint?

You get get all available terms using GET request:
 http://yoursite.name/wp-json/
wp/v2/all-terms

  When this plugin is useful?

This plugin is very useful when you want to create filters, or lists of all available
categories/tags (for example tag cloud).

  Do you have other useful REST-API plugins?

Yes, I have. You can check them by tag: [https://wordpress.org/plugins/tags/andrew-magik-rest-api](https://wordpress.org/plugins/tags/andrew-magik-rest-api).

## 评价

![](https://secure.gravatar.com/avatar/cc1fa8fe3014e161d0e87594f94ec34245f540ac6a4b0b0ae43d6408da5f3af9?
s=60&d=retro&r=g)

### 󠀁[Really Wonderful Work](https://wordpress.org/support/topic/really-wonderful-work/)󠁿

 [arindam4u](https://profiles.wordpress.org/arindam4u/) 2020 年 5 月 29 日

This plugin is really useful and great. Would be fantastic if it had option to orderby
menu_order

![](https://secure.gravatar.com/avatar/4c2e49df26fd98cf6bbe5b7c102d9c43fe9f7e89b55a65eb6c8b437c760edcfc?
s=60&d=retro&r=g)

### 󠀁[Just works!](https://wordpress.org/support/topic/just-works-461/)󠁿

 [Darius](https://profiles.wordpress.org/darius89/) 2018 年 10 月 14 日

This should be included in the default WP API!

![](https://secure.gravatar.com/avatar/c1da90711d6ac6219c1ec779788051ee00168b1ce6a970997cccc7f582eef62f?
s=60&d=retro&r=g)

### 󠀁[Very useful for creating tag cloud, or filters](https://wordpress.org/support/topic/very-useful-for-creating-tag-cloud-or-filters/)󠁿

 [Andrew MAGIK](https://profiles.wordpress.org/magikru/) 2016 年 9 月 3 日

Very useful for creating tag cloud, or filters

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/wp-rest-api-all-terms/reviews/)

## 贡献者及开发者

「WP REST API – All Terms」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Andrew MAGIK ](https://profiles.wordpress.org/magikru/)

[帮助将「WP REST API – All Terms」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-rest-api-all-terms)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-rest-api-all-terms/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-rest-api-all-terms/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-rest-api-all-terms/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-rest-api-all-terms/)。

## 更新日志

#### 1.0

 * Initial release!

## 额外信息

 *  版本 **1.0**
 *  最后更新：**10 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-rest-api-all-terms/)
 * 标签
 * [api](https://cn.wordpress.org/plugins/tags/api/)[rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)
   [taxonomies](https://cn.wordpress.org/plugins/tags/taxonomies/)[wp-api](https://cn.wordpress.org/plugins/tags/wp-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-rest-api-all-terms/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/wp-rest-api-all-terms/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-rest-api-all-terms/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-rest-api-all-terms/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-rest-api-all-terms/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-rest-api-all-terms/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-rest-api-all-terms/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-rest-api-all-terms/reviews/)

## 贡献者

 *   [ Andrew MAGIK ](https://profiles.wordpress.org/magikru/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-rest-api-all-terms/)