So I have a Wordpress website, and I want to be able to display the current logged in user's data on a page. Previously, I had been able to find a snippet of code that would go go in functions.php and I would be able to use a shortcode like [currentuser_(specific_metadata_tag)] and it would display it. I cannot find the stack exchange question that had this code. Is it possible for anyone to repost the link to that question, or maybe give me a piece of code to implement into the functions file so I can use a shortcode to access current user data? I think it should be fairly straightforward, the function would just get current user id then look under a specific metadata and pull data, then the short code would just display.
In any sense, I am not fully familiar with coding in PHP and so if I can receive any help, I would really appreciate it!