Check if viewing own profile

You can use existing API function that returns true if you are in your own profile, or viewing another profile (false)

<?php
global $userpro;
if ($userpro->viewing_his_profile()){
// viewing his own profile
} else {
// viewing another user profile }
?>

Was this article helpful?

Related Articles

Leave A Comment?