Skip to:
Content
Pages
Categories
Search
Top
Bottom

how can i modify this code for buddypress ?


  • rando
    Participant

    @woahmazing

    function bpfr_hide_admins_profile() {
    global $bp;
    if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) :
    wp_redirect( home_url() );
    exit;
    endif;
    }
    add_action( ‘wp’, ‘bpfr_hide_admins_profile’, 1 );

    i want a redirect code to a url
    &
    i want a code for echo a message without redirecting

    thanks

  • You must be logged in to reply to this topic.
Skip to toolbar