$tab) { $name = $tab['name']; // Name of the tab if ($name == 'Points' || $name == 'Info' || $name == 'Overview') { if (bp_displayed_user_id() !== get_current_user_id()) { // If tab is Points, Info or Overview and the current user is not viewing own profile, remove the tabs from the menu unset($tabs[$key]); } } } return $tabs; } } ?>