Skip to content

Instantly share code, notes, and snippets.

@davidperezgar
Forked from jameskoster/functions.php
Created October 20, 2016 16:30
Show Gist options
  • Save davidperezgar/2332fa3431382a35de9d3c2abe4bef70 to your computer and use it in GitHub Desktop.
Save davidperezgar/2332fa3431382a35de9d3c2abe4bef70 to your computer and use it in GitHub Desktop.
WooCommerce - change number of products displayed per page
// 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