/* hide category */
add_filter( ‘get_terms’, ‘get_subcategory_terms’, 10, 3 );

function get_subcategory_terms( $terms, $taxonomies, $args ) {

$new_terms = array();

// if a product category and on the shop page/archive page/single product page
if ( in_array( ‘product_cat’, $taxonomies ) && ! is_admin() && is_shop() || in_array( ‘product_cat’, $taxonomies ) && ! is_admin() && is_archive() || in_array( ‘product_cat’, $taxonomies ) && ! is_admin() && is_single() ) {

foreach ( $terms as $key => $term ) {

if ( ! in_array( $term->slug, array( ‘classic-series’ ) ) ) {
$new_terms[] = $term;
}

}

$terms = $new_terms;
}

return $terms;
}/*
Theme Name: Harvey Collective
Theme URI: http: //harveycollective.com/
Description: Clean / Responsive / Powerful
Author: Harvey Collective
Author URI: http: //harveycollective.com/
Template: salient
Version: 0.1
*/





