Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to disable register redirect


  • Patryk
    Participant

    @patrykos360

    Hi i want to know hot to disable buddypress register and login redirect now is
    http://www.example.com/wp-login.php?action=register
    i want to
    http://www.example.com/register

    but this not work `if ( bp_core_is_multisite() )
    remove_action( ‘wp’, ‘bp_core_wpsignup_redirect’ );
    else
    remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );`

    And this not work

    ‘function bbg_bp_loggedin_register_page_redirect_to( $redirect_to ) {
    if ( bp_is_component_front_page( ‘register’ ) )
    $redirect_to = bp_get_root_domain() . ‘/home’;

    return $redirect_to;
    }
    add_filter( ‘bp_loggedin_register_page_redirect_to’, ‘bbg_bp_loggedin_register_page_redirect_to’ );’

    and this not work in my functions.php theme

  • The topic ‘How to disable register redirect’ is closed to new replies.
Skip to toolbar