Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • skpc1
    Participant

    @skpc1

    How to hiding members page from non logged in users ?

    //Hide for non-logged-in users (public visitors)
    function bp_logged_out_page_template_redirect() { if( ! is_user_logged_in() && is_page( 'members' )|| is_page( 'activity' ) || bp_is_user()  ) { wp_redirect( home_url( 'https://vvcares.com/?buddypressBlogPostRedirect' ) ); exit(); } } add_action( 'template_redirect', 'bp_logged_out_page_template_redirect' );

    Ref; https://vvcares.com/blog/post/wordpress-buddypress-hide-page-from-non-members

Viewing 1 replies (of 1 total)
Skip to toolbar