@jaykdoe
Active 3 years, 9 months ago
-
Henry Wright replied to the topic How to make buddypress member profiles private for everyone in the forum How-to & Troubleshooting 9 years, 7 months ago
Hi @jaykdoe
You could try this:
function my_private_profiles() {
// Bail if not a profile page.
if ( ! bp_is_user_profile() )
return;// Allow admin users.
if ( current_user_can( 'manage_options' ) )
return;// Allow the profile owner.
if ( bp_loggedin_user_id() == bp_displayed_user_id() )…[Read more]