public
Created

Mystile - Only display parent categories on homepage

  • Download Gist
functions.php
PHP
1 2 3 4 5
add_filter( 'mystile_homepage_product_categories_params', 'homepage_parent_categories_only' );
function homepage_parent_categories_only( $params ) {
$params = 'parent="0"';
return $params;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.