Home Plugins wp rest api user meta
WP REST API – User Meta logo

WP REST API – User Meta

by Ruhul Amin on WordPress.org

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

(4)
Settings page under Settings -> REST User Meta

Settings page under Settings -> REST User Meta

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/

Active installations20+
Weekly downloads
24+20.00%
Version1.0.0
Last updated3/24/2025
WordPress version4.4
Tested up to6.7.2
Tags
apiJSONrest-apiuser meta