– Can you see the groups in question in the Dashboard? Dashboard > Groups
Yes I can
– Are you logged in as an administrator or a normal user?
Administrator
– Is the logged-in user a member of the groups in question?
Yes I am
– Can you see the groups when you go to example.com/members/yourmembername/groups?
No
But I can see on my activity feed that I joined the hidden group and can access the group link from there. eg. example.com/groups/hiddengroupname, but that’s the only way I can access it.
Hi I’m wanting to just hide member profile pages, but keep all other BuddyPress pages public. I tried this code in my bp-custom.php, but it doesn’t work. Any ideas?
/* Prevent logged out users from accessing bp profile pages */
function nonreg_visitor_redirect() {
global $bp;
if ( bp_is_profile_component() {
if(!is_user_logged_in()) { //just a visitor and not logged in
wp_redirect( get_option('siteurl') . '/register' );
}
}
}
add_filter('get_header','nonreg_visitor_redirect',1);