woocommerce_process_registration_errors
Usage
add_filter( 'woocommerce_process_registration_errors', 'wp_kama_woocommerce_process_registration_errors_filter', 10, 4 ); /** * Function for `woocommerce_process_registration_errors` filter-hook. * * @param $validation_error * @param $username * @param $password * @param $email * * @return */ function wp_kama_woocommerce_process_registration_errors_filter( $validation_error, $username, $password, $email ){ // filter... return $validation_error; }
- $validation_error
- -
- $username
- -
- $password
- -
- -
Where the hook is called
woocommerce_process_registration_errors
woocommerce/includes/class-wc-form-handler.php 1107
$validation_error = apply_filters( 'woocommerce_process_registration_errors', $validation_error, $username, $password, $email );