Reply To: Remove Member Directory Without Profile Error
I get an error on the top of the page when I put this in the bp-custom.php. Maybe I’m installing it wrong? If my members directory page is simply named “members”, and when people try to access it they are to be redirected to http://www.google.com, would I fill it in like this, or does the member page need to be specified with the full page url?
————-
function grim_members_directory(members) {
if ( bp_is_members_directory(members) && ! is_super_admin() )
bp_core_redirect( site_url(www.google.com) );
}
add_action( 'bp_ready', 'grim_members_directory' );