Do action when login fails.

Closes #11864
This commit is contained in:
Mike Jolley 2016-09-08 10:06:16 +01:00
parent 9cca27f21e
commit 7c134d7f7c
1 changed files with 1 additions and 0 deletions

View File

@ -925,6 +925,7 @@ class WC_Form_Handler {
}
} catch ( Exception $e ) {
wc_add_notice( apply_filters( 'login_errors', $e->getMessage() ), 'error' );
do_action( 'woocommerce_login_failed' );
}
}
}