Advertisement
kobial8

Cross Sells Product Number Setting

Nov 15th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. //Limiting the number of cross sells product total
  2. function change_woocommerce_cross_sells_total() {
  3. return 2;
  4. }
  5. add_filter( 'woocommerce_cross_sells_total', 'change_woocommerce_cross_sells_total' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement