woocommerce_process_registration_errors хук-фильтрWC 1.0

Использование

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
-
$email
-

Где вызывается хук

WC_Form_Handler::process_registration()
woocommerce_process_registration_errors
woocommerce/includes/class-wc-form-handler.php 1080
$validation_error  = apply_filters( 'woocommerce_process_registration_errors', $validation_error, $username, $password, $email );

Где используется хук в WooCommerce

Использование не найдено.