[WordPress] 外掛分享: Filter WP Api

首頁外掛目錄 › Filter WP Api
WordPress 外掛 Filter WP Api 的封面圖片
全新外掛
安裝啟用
尚無評分
3071 天前
最後更新
問題解決
WordPress 4.7+ PHP 5.2.4+ v1.1.0 上架:2017-09-29

內容簡介

如果您曾經使用 WP Rest API,您應該有注意到有許多字段,甚至您的客戶也不需要。在簡單的列表或單個文章檢視中載入所有字段是沒有意義的。

這個外掛的目的是刪除 Rest API 上的冗余字段。目前,它僅適用於文章。

功能

有兩個端點:「Compact」和「Detailed」。

「Compact」對於列出文章非常有用,「Detailed」對於單個文章檢視更好。
特色媒體的第一張圖像將作為細節和簡約模式下的「圖像」加入。
默認日期使用修改時間。
需要至少 WordPress 4.7 版本。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Filter WP Api」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

If you ever used WP Rest API, you should have noticed that there are lots of fields that even your client does not need. It makes no sense to load all fields for simple list or even single post view.
This plugin aims to remove redundant fields on Rest API. For now, it’s only available for posts.
Features
There are two endpoints: “compact” and “detailed.

“Compact” is useful for listing posts and Detailed is better for single post view.
First image of featured media will be added as ‘image’ on detailed and compact.
Modified was used as default date.
Requires at least WordPress 4.7

延伸相關外掛

文章
Filter
Apply Filters
Mastodon