Skip to:
Content
Pages
Categories
Search
Top
Bottom

Validation login/register without redirect to wp-login


  • andrewkusuma
    Participant

    @andrewkusuma

    How to avoid user/visitor when use register page and login page of bbpress and fill not correct validate at same page with information which one is not correct.

    default bbpress login and register is redirect to wp-login
    is any way to customize wordpress login register page?

Viewing 1 replies (of 1 total)

  • jagdishtechnostacks
    Participant

    @jagdishtechnostacks

    Hi, you can use this in functions.php or somewhere where you initialize your code
    /* Redirect to Splash screen if Non Admin */
    function loginRedirect( $redirect_to, $request, $user ) {
    return ( is_array( $user->roles ) && in_array( ‘administrator’, $user->roles ) ) ? admin_url() : site_url(“home/”);
    }
    add_filter( ‘login_redirect’, ‘loginRedirect’, 10, 3 );
    /* Ends */

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar