Skip to content

Instantly share code, notes, and snippets.

@DarioBF
Created February 15, 2016 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DarioBF/685aec22d9b76beb796c to your computer and use it in GitHub Desktop.
Save DarioBF/685aec22d9b76beb796c to your computer and use it in GitHub Desktop.
Change number of products per page on WooCommerce
// Display 24 products per page. Goes in functions.php
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment