woocommerce_cross_sells_total

woocommerce_cross_sells_total

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_cross_sells_total') is found 1 times:

  • /includes/wc-template-functions.php line 2317
    		 *
    		 * @param int $limit number of cross sell products.
    		 * @since 3.0.0
    		 */
    		$limit       = intval( apply_filters( 'woocommerce_cross_sells_total', $limit ) );
    		$cross_sells = $limit > 0 ? array_slice( $cross_sells, 0, $limit ) : $cross_sells;
    
    		wc_get_template(
    			'cart/cross-sells.php',
    			array(
    				'cross_sells'    => $cross_sells,