woocommerce_load_cart_from_session

woocommerce_load_cart_from_session

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_load_cart_from_session') is found 1 times:

  • /includes/class-wc-cart-session.php line 95
    	 *
    	 * @since 3.2.0
    	 */
    	public function get_cart_from_session() {
    		do_action( 'woocommerce_load_cart_from_session' );
    		$this->cart->set_totals( WC()->session->get( 'cart_totals', null ) );
    		$this->cart->set_applied_coupons( WC()->session->get( 'applied_coupons', array() ) );
    		$this->cart->set_coupon_discount_totals( WC()->session->get( 'coupon_discount_totals', array() ) );
    		$this->cart->set_coupon_discount_tax_totals( WC()->session->get( 'coupon_discount_tax_totals', array() ) );
    		$this->cart->set_removed_cart_contents( WC()->session->get( 'removed_cart_contents', array() ) );