How to hide filters on categories

Welcome to Product Filter for WooCommerce short tutorial guide.

This tutorial covers how to hide filters on categories for your WooCommerce Shop.

To start this tutorial go to Products > Categories. Here you will see all your categories. 

If you want to hide the filter on one of the categories then you need to choose the slug version of the name. For example, I will choose All Electronics for Kids.

Now navigate to your child theme and open the functions.php file.

Under the PHP tags put this code:

add_filter( 'prdctfltr_show_filter', 'my_hide_filter_on_category_function_jkbg4iu3b' );

function my_hide_filter_on_category_function_jkbg4iu3b() {
 if ( is_product_category( 'all-electronics-for-kids' ) ) {
  return false;
 return true;

In the if statement you will put the slug version name of your category. 

Now when we go to our shop and click the All Electronics for Kids category we will see that our changes have taken effect and that on that category the filter isn’t shown anymore.

Basically you can use any conditional tags here. Here are some WooCommerce samples

Read more Product Filter for WooCommerce tutorials to learn more. Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

One comment on “How to hide filters on categories”