{"id":66317,"date":"2017-04-09T04:37:52","date_gmt":"2017-04-09T04:37:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-rest-api-user-meta\/"},"modified":"2025-03-24T20:40:04","modified_gmt":"2025-03-24T20:40:04","slug":"wp-rest-api-user-meta","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/wp-rest-api-user-meta\/","author":8225094,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.1.0","tested":"6.7.5","requires":"4.4","requires_php":"","requires_plugins":null,"header_name":"WP REST API - User Meta","header_author":"Ruhul Amin","header_description":"This plugin include user meta into the WordPress REST API (v2) without additional API requests.","assets_banners_color":"e1e1e1","last_updated":"2025-03-24 20:40:04","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.ruhulamin.me\/","header_author_uri":"http:\/\/www.ruhulamin.me\/","rating":4,"author_block_rating":0,"active_installs":40,"downloads":2602,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"ruhul105","date":"2025-01-06 17:14:53"},"1.0.2":{"tag":"1.0.2","author":"ruhul105","date":"2025-01-06 18:16:31"},"1.1.0":{"tag":"1.1.0","author":"ruhul105","date":"2025-03-24 20:40:04"}},"upgrade_notice":{"1.1.0":"<p>This version adds a settings page and configurable fields. Visit Settings -&gt; REST User Meta to configure which fields to include.<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"3"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3217900,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3217900,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3217890,"resolution":"1544x500","location":"assets","locale":""},"banner-3088x1000.png":{"filename":"banner-3088x1000.png","revision":3217890,"resolution":"3088x1000","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3217915,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":3261109,"resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":3261109,"resolution":"1","location":"plugin"}},"screenshots":{"1":"Settings page under Settings -&gt; REST User Meta","2":"Example of REST API response with user meta data"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1556,1118,23853,14075],"plugin_category":[],"plugin_contributors":[138913],"plugin_business_model":[],"class_list":["post-66317","plugin","type-plugin","status-publish","hentry","plugin_tags-api","plugin_tags-json","plugin_tags-rest-api","plugin_tags-user-meta","plugin_contributors-ruhul105","plugin_committers-ruhul105"],"banners":{"banner":"https:\/\/ps.w.org\/wp-rest-api-user-meta\/assets\/banner-772x250.png?rev=3217915","banner_2x":"https:\/\/ps.w.org\/wp-rest-api-user-meta\/assets\/banner-1544x500.png?rev=3217890","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-rest-api-user-meta\/assets\/icon-128x128.png?rev=3217900","icon_2x":"https:\/\/ps.w.org\/wp-rest-api-user-meta\/assets\/icon-256x256.png?rev=3217900","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-rest-api-user-meta\/trunk\/screenshot-1.png?rev=3261109","caption":"Settings page under Settings -&gt; REST User Meta"},{"src":"https:\/\/ps.w.org\/wp-rest-api-user-meta\/trunk\/screenshot-2.png?rev=3261109","caption":"Example of REST API response with user meta data"}],"raw_content":"<!--section=description-->\n<p>Now you have no need to make additional requests to get author info from their id that is available in the default json response.\nThis plugin allows you to configure which user meta fields should be included in the REST API response through an easy-to-use admin interface.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Configurable user meta fields<\/li>\n<li>Includes avatar URL option<\/li>\n<li>Shows user role information<\/li>\n<li>No additional API requests needed<\/li>\n<li>Clean implementation<\/li>\n<\/ul>\n\n<h4>Available Fields<\/h4>\n\n<ul>\n<li>Nickname<\/li>\n<li>Description<\/li>\n<li>User URL<\/li>\n<li>First Name<\/li>\n<li>Last Name<\/li>\n<li>User Email<\/li>\n<li>Role<\/li>\n<li>Avatar<\/li>\n<\/ul>\n\n<p><strong>Example Response:<\/strong>\n    {\n        \"id\": 1,\n        \"title\": \"Sample Post\",\n        \"author\": 1,\n        \"author_meta\": {\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"role\": \"administrator\",\n            \"avatar\": \"https:\/\/secure.gravatar.com\/...\"\n        }\n    }<\/p>\n\n<h4>Credits<\/h4>\n\n<p>This plugin is created by <a href=\"https:\/\/www.linkedin.com\/in\/arruhulamin\/\" rel=\"friend\" title=\"Ruhul Amin\">Ruhul Amin<\/a><\/p>\n\n<h3>Support<\/h3>\n\n<p>For support, please visit http:\/\/www.ruhulamin.me\/<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Go to Settings -&gt; REST User Meta to configure which fields to include<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='where%20can%20i%20find%20the%20settings%20page%3F'><h3>Where can I find the settings page?<\/h3><\/dt>\n<dd><p>The settings page is located under Settings -&gt; REST User Meta in your WordPress admin panel.<\/p><\/dd>\n<dt id='how%20do%20i%20access%20the%20user%20meta%20in%20the%20api%20response%3F'><h3>How do I access the user meta in the API response?<\/h3><\/dt>\n<dd><p>The user meta data is included in the <code>author_meta<\/code> object of each post in the REST API response.<\/p><\/dd>\n<dt id='can%20i%20add%20custom%20meta%20fields%3F'><h3>Can I add custom meta fields?<\/h3><\/dt>\n<dd><p>Currently, the plugin supports a predefined set of common user meta fields. Custom fields support may be added in future versions.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added settings page under Settings menu<\/li>\n<li>Added configurable user meta fields<\/li>\n<li>Added avatar URL option<\/li>\n<li>Added user role support<\/li>\n<li>Improved code organization<\/li>\n<li>Removed unnecessary debug information<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Enhance WordPress REST API by including configurable user meta fields in post responses without additional API requests.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/66317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=66317"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ruhul105"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=66317"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=66317"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=66317"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=66317"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=66317"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=66317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}