Voeg deze code toe aan functions.php van je thema of Code Snippets.
add_filter( 'get_terms', 'hide_category', 10, 1 ); function hide_category( $terms ) { $new_terms = array(); foreach ( $terms as $term ) { if ( $term->slug !== 'NAAM_CATEGORIE' ) { $new_terms[] = $term; } else if ( $term->taxonomy !== 'product_cat' || is_admin() ) { $new_terms[] = $term; } } return $new_terms; }