[WordPress] 外掛分享: WP REST API Helper

首頁外掛目錄 › WP REST API Helper
WordPress 外掛 WP REST API Helper 的封面圖片
40+
安裝啟用
★★★★★
5/5 分(1 則評價)
1831 天前
最後更新
問題解決
WordPress 4.7+ PHP 7.0+ v2.0.2 上架:2020-03-28

內容簡介

一個幫助改善 WordPress 預設 REST API 資料的外掛。

感謝

請參觀我的 YouTube 頻道。我會定期發布有關 WordPress 開發的影片。頻道名稱是 Robiz Show

功能

文章和頁面

端點:
http://your-site.com/wp-json/wp/v2/posts
http://your-site.com/wp-json/wp/v2/pages

獲取文章的特色圖片 URL。[完整、大、中、縮略圖]
以易讀的格式顯示文章的發佈日期。
獲取作者詳細資訊,包括 user_nicename 和 user_url。
獲取文章分類物件。包含分類 ID、名稱、別名、描述、父分類、文章數量和 URL。

文章

端點:http://your-site.com/wp-json/wp/v2/posts

特色圖片的 URL 「featured_image_src」,提供多個變化 [完整、大、中、縮略圖]。
以更易讀的格式顯示文章發佈日期,名為「published_on」(例如:2020 年 2 月 20 日)
作者詳細資訊以「author_details」表示。
文章分類以「post_terms」表示,包含分類物件的陣列。

頁面

端點:http://your-site.com/wp-json/wp/v2/pages
* 提供多個特色圖片的 URL 「featured_image_src」 [完整、大、中、縮略圖]。

選單

端點:http://your-site.com/wp-json/wp/v2/menus
* 提供基於選單位置的佈景主題完整選單列表。物件包含父項目和其子項目的資訊。

小工具

端點:http://your-site.com/wp-json/wp/v2/widgets
* 提供與小工具相關聯的小工具區域清單。

一般資訊

端點:http://your-site.com/wp-json/wp/v2/general
* 提供網站的一般資訊。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP REST API Helper」→ 直接安裝(推薦)

原文外掛簡介

A plugin to help out the default WordPress REST API Data.
Credits
Please visit my YouTube Channel. I publish WordPress development related videos regularly. The channel name is Robiz Show
Features

Post & Pages
Endpoint:
http://your-site.com/wp-json/wp/v2/posts
http://your-site.com/wp-json/wp/v2/pages

Get feature image url of a post. [ Full, Large, Medium, Thumbnail ]
Get publish date in a human readable format.
Get author details which includes user_nicename, user_url.
Get post terms object. That includes term id, name, slug, description, parent, post count and url.

Posts
Endpoint: http://your-site.com/wp-json/wp/v2/posts

Featured image source stated as  featured_image_src  with multiple variations [ Full, Large, Medium, Thumbnail ].
Post published date in more readable format stated as   published_on  (e.g: Feb 20, 2020)
Author details stated as  author_details.
Post terms stated as  post_terms . This contains an array of objects of the terms.

Pages
Endpoint: http://your-site.com/wp-json/wp/v2/pages
* Featured image source stated as  featured_image_src  with multiple variations [ Full, Large, Medium, thumbnail ).
Menus
Endpoint: http://your-site.com/wp-json/wp/v2/menus
* Provides full menu list of a theme based on menu location. object contains parent and its child information.
Widgets
Endpoint: http://your-site.com/wp-json/wp/v2/widgets
* Provides the widget area list associated with the widgets.
General Info
Endpoint: http://your-site.com/wp-json/wp/v2/general
* Provides the general information about the site.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon