WP REST API – User Meta
WP REST API – User Meta
Description
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/
Installation
- Upload the plugin folder to the
/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ screen in WordPress
- Go to Settings -> REST User Meta to configure which fields to include
Screenshots
Faq
The settings page is located under Settings -> REST User Meta in your WordPress admin panel.
The user meta data is included in the author_meta object of each post in the REST API response.
Currently, the plugin supports a predefined set of common user meta fields. Custom fields support may be added in future versions.
Reviews
Good Plugin
By ympervej86 on June 29, 2020
I got an error
By rayanawad on March 23, 2018
Only return null
By jacobahlberg on December 18, 2017
Easy to use.
By Ruhul Amin (ruhul105) on April 14, 2017
Changelog
1.1.0
- Added settings page under Settings menu
- Added configurable user meta fields
- Added avatar URL option
- Added user role support
- Improved code organization
- Removed unnecessary debug information
1.0.0
- Initial release

