Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing Page New Member Lands on After Activation

  • @jasonaring

    Participant

    Hello,

    Just finishing up my site (WordPress Version 4.1.1, Buddypress 2.2.1) @ http://www.124connect.com and was hoping to find out a way to redirect new members to the “members” page after activation. Currently it sends them to my home page which, the way I have things set up, would be a bit disorienting to those wanting to use the social platform.

    What path do I need to take in Cpanel (if I can’t do this on the frontend) and lines do I need to modify to direct new members to http://www.124connect.com/members after activating their account?

    Thanks a bunch for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @bphelp

    Participant

    @jasonaring
    Untested but place the below code in bp-custom.php

    
    function bp_help_redirect_to_members_page(){
    if( !is_user_logged_in() && !bp_is_register_page() && !bp_is_activation_page() ) {
    bp_core_redirect( get_option('home') . '/members/' );
    }
    }
    
    add_action( 'template_redirect', 'bp_help_redirect_to_members_page',1);
    

    Good luck!

    @jasonaring

    Participant

    Thanks a lot. I’ll give it a shot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing Page New Member Lands on After Activation’ is closed to new replies.
Skip to toolbar