woocommerce_process_login_errors
Использование
add_filter( 'woocommerce_process_login_errors', 'wp_kama_woocommerce_process_login_errors_filter', 10, 3 ); /** * Function for `woocommerce_process_login_errors` filter-hook. * * @param $validation_error * @param $creds_user_login * @param $creds_user_password * * @return */ function wp_kama_woocommerce_process_login_errors_filter( $validation_error, $creds_user_login, $creds_user_password ){ // filter... return $validation_error; }
- $validation_error
- -
- $creds_user_login
- -
- $creds_user_password
- -
Где вызывается хук
woocommerce_process_login_errors
woocommerce/includes/class-wc-form-handler.php 970
$validation_error = apply_filters( 'woocommerce_process_login_errors', $validation_error, $creds['user_login'], $creds['user_password'] );