woocommerce_product_crosssell_ids filter-hookWC 1.0

Usage

add_filter( 'woocommerce_product_crosssell_ids', 'wp_kama_woocommerce_product_crosssell_ids_filter', 10, 2 );

/**
 * Function for `woocommerce_product_crosssell_ids` filter-hook.
 * 
 * @param  $cross_sell_ids 
 * @param  $that           
 *
 * @return 
 */
function wp_kama_woocommerce_product_crosssell_ids_filter( $cross_sell_ids, $that ){

	// filter...
	return $cross_sell_ids;
}
$cross_sell_ids
-
$that
-

Where the hook is called

WC_Abstract_Legacy_Product::get_cross_sells()
woocommerce_product_crosssell_ids
woocommerce/includes/legacy/abstract-wc-legacy-product.php 440
return apply_filters( 'woocommerce_product_crosssell_ids', $this->get_cross_sell_ids(), $this );

Where the hook is used in WooCommerce

Usage not found.