woocommerce_cart_session_initialize

woocommerce_cart_session_initialize

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_cart_session_initialize') is found 1 times:

  • /includes/class-wc-cart-session.php line 67
    		 * @returns bool True if the cart hooks should be actually initialized, false if not.
    		 *
    		 * @since 6.9.0
    		 */
    		if ( ! apply_filters( 'woocommerce_cart_session_initialize', true, $this ) ) {
    			return;
    		}
    
    		add_action( 'wp_loaded', array( $this, 'get_cart_from_session' ) );
    		add_action( 'woocommerce_cart_emptied', array( $this, 'destroy_cart_session' ) );
    		add_action( 'woocommerce_after_calculate_totals', array( $this, 'set_session' ), 1000 );