woocommerce_before_checkout_form_cart_notices

woocommerce_before_checkout_form_cart_notices

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_before_checkout_form_cart_notices') is found 1 times:

  • /includes/shortcodes/class-wc-shortcode-checkout.php line 344
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    * Show the checkout.
     */
    private static function checkout() {
        // Show non-cart errors.
        do_action( 'woocommerce_before_checkout_form_cart_notices' );
     
        // Check cart has contents.
        if ( WC()->cart->is_empty() && ! is_customize_preview() && apply_filters( 'woocommerce_checkout_redirect_empty_cart', true ) ) {
            return;
        }

See this hook used in plugins: