displaying custom code on a given users profile page
Assuming you are in the back-end (admin), so the user profile page is being rendered by /wp-admin/user-edit.php – there is a global variable that indicates the id of the user whose profile we are on. If you look at the source code for user-edit.php you can see it guarantees (or will die) the existence of … Read more