woocommerce_cart_crosssell_ids

woocommerce_cart_crosssell_ids

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_cart_crosssell_ids') is found 1 times:

  • /includes/class-wc-cart.php line 837
    				}
    			}
    		}
    		$cross_sells = array_diff( $cross_sells, $in_cart );
    		return apply_filters( 'woocommerce_cart_crosssell_ids', wp_parse_id_list( $cross_sells ), $this );
    	}
    
    	/**
    	 * Gets the url to remove an item from the cart.
    	 *
    	 * @param string $cart_item_key contains the id of the cart item.