Created
September 6, 2017 12:42
-
-
Save cryptexvinci/55ae7b1007a8e1c02e0d3c4d42e4fd40 to your computer and use it in GitHub Desktop.
Display child categories 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_child' ); | |
// Category Products - display child categories | |
function custom_storefront_category_child( $args ) { | |
$args['child_categories'] = 1; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! Thanks for share! But, it's not work to me =(