
內容簡介
WP REST API – User Meta 外掛讓您可以輕鬆配置 REST API 回應中包含的使用者自訂欄位,無需額外請求即可獲取作者資訊,提高開發效率。
【主要功能】
• 可配置的使用者自訂欄位
• 包含頭像 URL 選項
• 顯示使用者角色資訊
• 無需額外 API 請求
• 實作簡潔
外掛標籤
開發者團隊
原文外掛簡介
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/
