BACK TO DIRECTORY

WP REST API – User Meta

by Ruhul Amin

4.0
(4 ratings)

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/

Screenshots

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

Plugin Details

Active Installs
20
Total Downloads
3,536
Version
1.1.1
Requires WP
4.4
Requires PHP
5.6
Tested Up To
7.1
Added
2017-04-09
Last Updated
2026-08-29 6:34am GMT

Ratings

5
3
4
0
3
0
2
0
1
1