Created
October 9, 2017 14:59
-
-
Save stuartduff/c550d5050a1bbaa2e732c1058f6f97ec to your computer and use it in GitHub Desktop.
Change WooCommerce products per page in Storefront
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
| function alter_sf_products_per_page() { | |
| // Return the number of products per page ( default: 12 ). | |
| return 8; | |
| } | |
| add_filter('storefront_products_per_page', 'alter_sf_products_per_page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment