Skip to:
Content
Pages
Categories
Search
Top
Bottom

Start Page for not logged in visitors

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    Try this…
    Create bp-custom.php, it will go in /wp-content/plugins
    Add this code to it, change “/login-or-join” to whatever your page name is :

    function login_intercepts(){
    /*  if not logged in, user is sent to another page  */
    if ( !is_user_logged_in() ) {
    bp_core_redirect( get_option('siteurl')."/login-or-join" );
    }
    }
    add_action( 'wp', 'login_intercepts', 3 );
Viewing 1 replies (of 1 total)
  • The topic ‘Start Page for not logged in visitors’ is closed to new replies.
Skip to toolbar