• Hello there ??

    i just realize that a function that i’m using redirects users that also entered an incorrect password to the homepage

    how can i filter this and redirects users that enter an incorrect password to the “fail login” seite?

    i use following function:

    add_filter('woocommerce_login_redirect', 'pro_login_redirect');
    
    function pro_login_redirect( $redirect_to ) {
         $redirect_to = home_url();
         return $redirect_to;
    }

    thanks in advanced

Viewing 1 replies (of 1 total)
  • Thread Starter ag-alva

    (@ag-alva)

    well i deleted that snippet and the webpage is still redirecting users to the main page regardless if they entered a correct/incorrect password….
    i would like to add a function that proves if the users provide the correct password and if so redirects the to the homepage, if not then redirects them to the handling website….if there is any…

Viewing 1 replies (of 1 total)
  • The topic ‘log in Function doesn't handle incorrect password!’ is closed to new replies.