Created
October 11, 2017 15:02
-
-
Save woogist/3c3c95f8f8cc2f1fe29439eb7846fec3 to your computer and use it in GitHub Desktop.
Documentation: Storefront Filters example: Change the number of products displayed per page
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
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