Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirect Register?


  • jstande
    Participant

    @jstande

    If the following is to redirect Registration from BP to WP, what would redirect from BP to [Peepso_Register] ? And exactly where would I put it?

    (Any reason why nobody has developed options to turn everything on or off in BP since it is so integrated with other themes and plugins?)

    /*disable registration bp */
    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’;
    }

    Version 4.1.0 BuddyPress
    Version 5.0.3 WordPress

    Home Default

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