woocommerce_before_cart_emptied, $clear_persistent_cart

woocommerce_before_cart_emptied, $clear_persistent_cart

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('woocommerce_before_cart_emptied, $clear_persistent_cart') is found 1 times:

  • /includes/class-wc-cart.php line 704
    		 * @since 9.7.0
    		 *
    		 * @param bool $clear_persistent_cart Whether the persistent cart will be cleared too.
    		 */
    		do_action( 'woocommerce_before_cart_emptied', $clear_persistent_cart );
    
    		$this->cart_contents              = array();
    		$this->removed_cart_contents      = array();
    		$this->shipping_methods           = array();
    		$this->coupon_discount_totals     = array();
    		$this->coupon_discount_tax_totals = array();