這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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〉的開發相關工作。

參與者

將〈O3 CLI Services〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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