[WordPress] 外掛分享: WP REST API – User Meta

首頁 › 外掛目錄 › WP REST API – User Meta
WordPress 外掛 WP REST API – User Meta 的封面圖片
30+
安裝啟用
★★★★☆
4/5 分(4 則評價)
48 天前
最後更新
—
問題解決
WordPress 4.4+ PHP 5.6+ v1.1.1 上架:2017-04-08

內容簡介

WP REST API – User Meta 外掛讓您可以輕鬆配置 REST API 回應中包含的使用者自訂欄位,無需額外請求即可獲取作者資訊,提高開發效率。

【主要功能】
• 可配置的使用者自訂欄位
• 包含頭像 URL 選項
• 顯示使用者角色資訊
• 無需額外 API 請求
• 實作簡潔

外掛標籤

開發者團隊

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

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

原文外掛簡介

Now you have no need to make additional requests to get author info from their id that is available in the default json response.
This plugin allows you to configure which user meta fields should be included in the REST API response through an easy-to-use admin interface.
Features

Configurable user meta fields
Includes avatar URL option
Shows user role information
No additional API requests needed
Clean implementation

Available Fields

Nickname
Description
User URL
First Name
Last Name
User Email
Role
Avatar

Example Response:
{
“id”: 1,
“title”: “Sample Post”,
“author”: 1,
“author_meta”: {
“first_name”: “John”,
“last_name”: “Doe”,
“role”: “administrator”,
“avatar”: “https://secure.gravatar.com/…”
}
}
Credits
This plugin is created by Ruhul Amin
Support
For support, please visit http://www.ruhulamin.me/

延伸相關外掛

文章
Filter
Mastodon