Now you have no need to make additional requests to get author info (name, display_name, first_name, last_name, user_email, user_registered date) from their id that is available in the default json response.
Now all these author data is available in ‘author_meta’ field from your json response.
For example in ‘wp-json/wp/v2/posts’ you can find default fields ‘author’ that contains only its id. With this plugin you can also find new ‘author_meta’ field that include details about author.
This plugin is created by Ruhul Amin
- If your wordpress version below 4.7 then double check you have the WordPress REST (v2) API installed and active
- Upload the plugin folder to the
/wp-content/plugins/directory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress
Contributors & Developers
“WP REST API – User Meta” is open source software. The following people have contributed to this plugin.Contributors
Translate “WP REST API – User Meta” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
- Initial release!