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

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

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
-

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

WC_Form_Handler::process_login()
woocommerce_process_login_errors
woocommerce/includes/class-wc-form-handler.php 945
$validation_error = apply_filters( 'woocommerce_process_login_errors', $validation_error, $creds['user_login'], $creds['user_password'] );

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

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