Last active
July 26, 2016 20:39
-
-
Save BFTrick/22c3871234071ad30e50ba3826454973 to your computer and use it in GitHub Desktop.
Show 20 products per page in WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Display 25 products per page. Goes in your theme's functions.php | |
// Credit: https://gist.github.com/jameskoster/1601682 | |
add_filter( 'loop_shop_per_page', 'patricks_products_per_page', 20 ); | |
function patricks_products_per_page( $num_products ) { | |
return 20; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment