跳到内容

WP REST API – User Meta

v1.1.1

Ruhul Amin · 2017年4月9日 上架

Enhance WordPress REST API by including configurable user meta fields in post responses without additional API requests.

正在使用
30+
评分
4.0 / 5
累计下载
3,920
最近更新
2026年8月29日
4 条评价需要 WordPress 4.4+已测试到 7.1.5PHP 5.6+

贡献者

截图

Settings page under Settings -> REST User Meta
Settings page under Settings -> REST User Meta
Example of REST API response with user meta data
Example of REST API response with user meta data

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/

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums