woocommerce_cart_has_errors
Использование
add_action( 'woocommerce_cart_has_errors', 'wp_kama_woocommerce_cart_has_errors_action' ); /** * Function for `woocommerce_cart_has_errors` action-hook. * * @return void */ function wp_kama_woocommerce_cart_has_errors_action(){ // action... }
Где вызывается хук
В файле: /templates/checkout/cart-errors.php
woocommerce_cart_has_errors
woocommerce/templates/checkout/cart-errors.php 23
<?php do_action( 'woocommerce_cart_has_errors' ); ?>