Created
April 26, 2021 11:03
-
-
Save stuartduff/51c1fbd24f14814038f81fc87bccde95 to your computer and use it in GitHub Desktop.
Displays all product categoris on the homepage of Storefront
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 sd_display_four_home_product_categories( $args ) { | |
// Displays all product categoris on the homepage of Storefront | |
$args['limit'] = -1; | |
// Output | |
return $args; | |
} | |
add_filter( 'storefront_product_categories_args', 'sd_display_four_home_product_categories' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment