WP REST API – User Meta

plugin banner

This plugin include author meta (name, display_name, first_name, last_name, user_email) into the WordPress REST API (v2) without additional API reques …

Author:Ruhul Amin (profile at wordpress.org)
WordPress version required:4.4
WordPress version tested:6.7.2
Plugin version:1.0.0
Added to WordPress repository:09-04-2017
Last updated:24-03-2025
Rating, %:80
Rated by:4
Plugin URI:http://www.ruhulamin.me/
Total downloads:2 602
Active installs:40+
plugin download
Click to start download

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
FAQ
ChangeLog