Forked from stuartduff/change-products-per-page-storefront.php
Created
January 5, 2018 17:23
-
-
Save lukecav/2a75d0e2509d095d98941f2a33ee3773 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