wgardner
3/15/2018 - 2:16 PM

Change amount of products shown

// Change number of products shown 
add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 );

function new_loop_shop_per_page( $cols ) {
  // $cols contains the current number of products per page based on the value stored on Options -> Reading
  // Return the number of products you wanna show per page.
  $cols = 40;
  return $cols;
}