Support » Plugin: WooCommerce » Want to limit number of cross sell items

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Use the ‘woocommerce_cross_sells_total’ filter.

    add_filter( 'woocommerce_cross_sells_total', 'limit_woocommerce_cross_sells_total' );
    
    function limit_woocommerce_cross_sells_total() {
    return 4;
    }
    Thread Starter David Borrink

    (@davidborrink)

    Excellent. Thanks Mike. I need to take a little time and look at the hooks and filter references to find more of what I need.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Want to limit number of cross sell items’ is closed to new replies.