Last active
September 16, 2017 15:04
-
-
Save cryptexvinci/bc3d8dc1592ace448d0bf324d2a56e85 to your computer and use it in GitHub Desktop.
set number of product category you want to display on Storefront Homepage.
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
add_filter('storefront_product_categories_shortcode_args','custom_storefront_category_per_page' ); | |
// Category Products | |
function custom_storefront_category_per_page( $args ) { | |
$args['number'] = 10; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment