{"id":11470429,"date":"2019-04-26T13:51:59","date_gmt":"2019-04-26T13:51:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/collect-value-of-user\/"},"modified":"2019-04-26T13:56:42","modified_gmt":"2019-04-26T13:56:42","slug":"collect-value-of-user","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/collect-value-of-user\/","title":{"rendered":"Collect value of user"},"content":{"rendered":"<p>Hello, <\/p>\n<p>I have a question, with this code, i can to collect the value of &#8220;phone_number&#8221; of user connected in the web site.<\/p>\n<p>$user_id = um_user(&#8216;ID&#8217;);<br \/>\num_fetch_user( $user_id );<br \/>\n$meta_value = um_user(&#8216;mobile_number&#8217;);<br \/>\necho $meta_value;<\/p>\n<p>But i would like to collect the value of &#8220;phone number&#8221; of the user that I&#8217;m watching<\/p>\n<p>For more details if i see the profil &#8220;francecasting.fr\/user\/james&#8221;, i would like to see the information of james and not user connected.<\/p>\n<p>Regards,  <\/p>\n","protected":false},"template":"","class_list":["post-11470429","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11470429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11470429\/revisions"}],"predecessor-version":[{"id":11470444,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11470429\/revisions\/11470444"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11470429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}