{"id":47,"date":"2021-02-23T18:57:04","date_gmt":"2021-02-23T18:57:04","guid":{"rendered":"https:\/\/documentation.userswp.io\/article\/uwp-user-meta\/"},"modified":"2026-01-30T13:55:12","modified_gmt":"2026-01-30T13:55:12","slug":"uwp-user-meta","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/core-widgets\/uwp-user-meta\/","title":{"rendered":"UWP > User Meta"},"content":{"rendered":"\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-success mb-3\" role=\"alert\"><span class=\"fas fa-check-circle me-2\"><\/span><span class=\"flex-grow-1\">All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our <a href=\"https:\/\/userswp.io\/documentation\/article\/what-makes-userswp-widgets-special\/\">Super Duper Widgets<\/a>.This is some information you should read<\/span><\/div>\n\n\n\n<p>The <strong>UWP &gt; User Meta<\/strong><strong>&nbsp;<\/strong>widget is used to display the user&#8217;s meta info.&nbsp;<\/p>\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-warning mb-3\" role=\"alert\"><span class=\"fas fa-exclamation-triangle me-2\"><\/span><span class=\"flex-grow-1\">All raw user meta values can be accessed via the standard WP function&nbsp;get_user_meta() by simply prefixing the field key with \u201cuwp_meta_\u201d <em>E.g: to get the email use:&nbsp;get_user_meta( $user_id, \u201cuwp_meta_email\u201d, true );<\/em><\/span><\/div>\n\n\n<h2 class=\"wp-block-heading\">Widget Options<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Key &#8211; <\/strong>Specify the meta key value here. This is the value that will be displayed on the frontend.&nbsp;<\/li>\n\n\n\n<li><strong>User ID&nbsp;(<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>You can choose the user ID for which the meta should be shown. Leave blank to pick the current logged-in user.&nbsp;<\/li>\n\n\n\n<li><strong>Show (<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>Specify what parts of meta should be shown.&nbsp;<\/li>\n\n\n\n<li><strong>Extra Class (<a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/hidden-advanced-settings\/\">A<\/a>) &#8211; <\/strong>Specify custom CSS classes here for additional styling.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Example Output<\/h2>\n\n\n\n<p>Default output:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/userswp.io\/documentation\/wp-content\/uploads\/2026\/01\/Screenshot-1.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The UWP &gt; User Meta&nbsp;widget is used to display the user&#8217;s meta info.&nbsp; All raw user meta values can be accessed via the standard WP function&nbsp;get_user_meta() by simply prefixing the field key with \u201cuwp_meta_\u201d E.g: to get the email use:&nbsp;get_user_meta( $user_id, \u201cuwp_meta_email\u201d, true ); Widget Options Example Output Default output:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[81,90,91,92],"article\/categories":[20,5],"class_list":["post-47","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-userswp-widgets","gd_place_tags-user-meta","gd_place_tags-meta-data","gd_place_tags-meta-info","gd_placecategory-core-widgets","gd_placecategory-extensions-features"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/47\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=47"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}