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/

评论0