Title: O3 CLI Services
Author: o3world
Published: <strong>2019 年 12 月 18 日</strong>
Last modified: 2019 年 12 月 18 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/o3-cli-services.svg)

# O3 CLI Services

 作者：[o3world](https://profiles.wordpress.org/o3world/)

[下载](https://downloads.wordpress.org/plugin/o3-cli-services.1.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/o3-cli-services/#description)
 * [评价](https://cn.wordpress.org/plugins/o3-cli-services/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/o3-cli-services/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/o3-cli-services/#developers)

 [支持](https://wordpress.org/support/plugin/o3-cli-services/)

## 描述

In its current version, O3 CLI Services exposes two WordPress REST API endpoints

to empower developers and QA engineers to query URL paths of WordPress posts by 
post types, category types, and menus.

### Usage

Use the /wp-json/o3-cli-api/url-sources API endpoint to get a list of sources of

URL paths, and use the /wp-json/o3-cli-api/urls API to get a list of URL paths of
posts in the system, using your sources as URL query parameter filters.

Source filters for /wp-json/o3-cli-api/urls:
 – post_types – Include a comma-separated
list of post type machine names. – categories – Include a comma-separated list of
category slugs. – menus – Include a comma-separated list of menu slugs. – limit –
Include an integer limit to control the maximum number of URL paths to return for
each machine name in any source.

An example request:

GET http://example.com/wp-json/o3-cli-api/urls?post_types=post,product&categories
=food,travel&menus=main-navigation,footer-menu&limit=50

The above example requests the URL paths of posts of post types with the machine

names of ‘post’ and ‘product’, having categories with ‘food’ and ‘travel’ slugs,
as well as items in menus with ‘main-navigation’ and ‘footer-menu’ slugs. As with
any WordPress REST API endpoints, the above request returns a JSON array.

The O3 CLI automatically generates requests like the above, and it empowers
 developers
and QA engineers to dynamically generate visual regression tests, among other needs.
See the documentation at https://www.npmjs.com/package/o3-cli.

## 安装

Upload the O3 CLI Services plugin to your blog, or download it to the
 your-project-
folder/wp-content/plugins folder. Then, activate it on the Plugins page.

## 评价

此插件暂无评价。

## 贡献者及开发者

「O3 CLI Services」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ o3world ](https://profiles.wordpress.org/o3world/)
 *   [ Matt Schaff ](https://profiles.wordpress.org/gwolfman/)

[帮助将「O3 CLI Services」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/o3-cli-services)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.2

_Release Date – 19 December 2019_

 * Fixed release naming

#### 1.0.1

_Release Date – 19 December 2019_

 * Fixed release naming

#### 1.0.0

_Release Date – 19 December 2019_

 * Initial release

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**6 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  语言
 * [English (US)](https://wordpress.org/plugins/o3-cli-services/)
 * 标签
 * [automation](https://cn.wordpress.org/plugins/tags/automation/)[quality assurance](https://cn.wordpress.org/plugins/tags/quality-assurance/)
   [testing](https://cn.wordpress.org/plugins/tags/testing/)
 *  [高级视图](https://cn.wordpress.org/plugins/o3-cli-services/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/o3-cli-services/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/o3-cli-services/reviews/)

## 贡献者

 *   [ o3world ](https://profiles.wordpress.org/o3world/)
 *   [ Matt Schaff ](https://profiles.wordpress.org/gwolfman/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/o3-cli-services/)