woocommerce_get_cart_item_from_session

woocommerce_get_cart_item_from_session

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_get_cart_item_from_session') is found 1 times:

  • /includes/class-wc-cart-session.php line 207
    						'data' => $product,
    					)
    				);
    
    				$cart_contents[ $key ] = apply_filters( 'woocommerce_get_cart_item_from_session', $session_data, $values, $key );
    
    				// Add to cart right away so the product is visible in woocommerce_get_cart_item_from_session hook.
    				$this->cart->set_cart_contents( $cart_contents );
    			}
    		}