Skip to:
Content
Pages
Categories
Search
Top
Bottom

Register Navigation Menu Redirection


  • spadixon
    Participant

    @spadixon

    Greetings!

    I currently have WP 4.9.1 & Buddypress 2.9.2 installed. I have made a navigation menu, selected the buddy press options, which include log in, log out & Register. I have also made a bp-custom.php file with the following text in it in order to disable the BP registration and to use the default wp one.

    <?php
    // hacks and mods will go here

    /**

    * Disables BuddyPress’ registration process and fallsback to WordPress’ one.

    */

    function my_disable_bp_registration() {

    remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );

    remove_action( ‘bp_screens’, ‘bp_core_screen_signup’ );

    }

    add_action( ‘bp_loaded’, ‘my_disable_bp_registration’ );

    add_filter( ‘bp_get_signup_page’, “firmasite_redirect_bp_signup_page”);
    function firmasite_redirect_bp_signup_page($page ){
    return bp_get_root_domain() . ‘/wp-login.php?action=register’;
    }

    ?>

    This works fine, in regards to when you are on the WP log in page, and choose register, it loads the correct registration page.

    However, in regards to the BP Register on the navigation menu, this still re directs to the buddypress registration page. i would like it to direct to the WP one.

    Can i ask please what else is needed in order for the Buddypress Register navigation menu to redirect to the WordPress Register Page.

    Regards

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