woocommerce_cart_reset
Usage
add_action( 'woocommerce_cart_reset', 'wp_kama_woocommerce_cart_reset_action', 10, 2 ); /** * Function for `woocommerce_cart_reset` action-hook. * * @param $that * @param $false * * @return void */ function wp_kama_woocommerce_cart_reset_action( $that, $false ){ // action... }
- $that
- -
- $false
- -
Where the hook is called
woocommerce_cart_reset
woocommerce/includes/class-wc-cart.php 2129
do_action( 'woocommerce_cart_reset', $this, false );