Created
December 14, 2018 16:12
-
-
Save chronosceptor/40d57fbc8c08a43dc1a5ecd3081f6b04 to your computer and use it in GitHub Desktop.
WooCommerce | Number of products to display on Shop Page
This file contains hidden or 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 | |
| add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 ); | |
| function new_loop_shop_per_page( $products ) { | |
| // Return the number of products you wanna show per page. | |
| $products = 6; | |
| return $products; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment