woocommerce_cart_loaded_from_session

woocommerce_cart_loaded_from_session

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_cart_loaded_from_session') is found 1 times:

  • /includes/class-wc-cart-session.php line 219
    		if ( ! empty( $cart_contents ) ) {
    			$this->cart->set_cart_contents( apply_filters( 'woocommerce_cart_contents_changed', $cart_contents ) );
    		}
    
    		do_action( 'woocommerce_cart_loaded_from_session', $this->cart );
    
    		if ( $update_cart_session || is_null( WC()->session->get( 'cart_totals', null ) ) ) {
    			WC()->session->set( 'cart', $this->get_cart_for_session() );
    			$this->cart->calculate_totals();
    
    			if ( $merge_saved_cart ) {
    

See this hook used in plugins: