woocommerce_before_checkout_form_cart_notices хук-событиеWC 1.0

Show non-cart errors.

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

add_action( 'woocommerce_before_checkout_form_cart_notices', 'wp_kama_woocommerce_before_checkout_form_cart_notices_action' );

/**
 * Function for `woocommerce_before_checkout_form_cart_notices` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_before_checkout_form_cart_notices_action(){

	// action...
}

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

WC_Shortcode_Checkout::checkout()
woocommerce_before_checkout_form_cart_notices
woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php 284
do_action( 'woocommerce_before_checkout_form_cart_notices' );

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

woocommerce/includes/wc-template-hooks.php 308
add_action( 'woocommerce_before_checkout_form_cart_notices', 'woocommerce_output_all_notices', 10 );