• Hi @mossyoak

    I’ve run a few tests and made some slight changes to that code. Try this
    function bp_my_restrict() {
    $user_id = bp_loggedin_user_id();
    $user = new WP_User( $user_id );

    if ( ( $user->roles[0] != 'administrator' ) ) {

    if ( bp_is_current_component('members') || bp_is_current_component('activity') ) {
    wp_redirect( home_url() );
    exit();
    }
    …>
    [Read more]