@dreamh11
Active 7 years, 2 months ago
-
Henry Wright replied to the topic Hide profile page of admin from other users in the forum How-to & Troubleshooting 10 years, 2 months ago
Hi @dreamh11,
Try adding this to your theme’s functions.php file:
function hide_admin_profile() {
// Bail if this is not a profile.
if ( ! bp_is_user_profile() )
return;// This assumes the member ID of the admin user is 1.
if ( 1 == bp_displayed_user_id() ) {
// We're trying to view the admin's profile so…[Read more]