WooCommerce : Add Custom Taxonomy Filter on Products Dashboard.

Code

How To Filter Products by Taxonomies in the Dashboard?

WooCommerce provide Many Product filters on admin screen , such as “Select a category”, “Filter by product type”, “Filter by stock status”.

For example ,if you want to add Custom filters like “Filter by tags” etc on products admin screen.
“Product tag” is a default taxonomies of WooCommerce same as “Product categories”. We can use ‘woocommerce_product_filters’ filter for adding other texonomy filters too.

Before
null

Paste this code to your theme’s functions.php for adding filter to product admin screen.

function CustomTaxonomyFilter( $data ) { 
  global $wp_query; 
  $data .= wc_product_dropdown_categories( array(
    'show_option_none' => 'Filter by Tags',
    'taxonomy' => 'product_tag',
    'name' => 'product_tag',
    'selected' => isset( $wp_query->query_vars['product_tag'] ) ? $wp_query->query_vars['product_tag'] : '',
  ) );
return $data;
}
add_filter('woocommerce_product_filters','CustomTaxonomyFilter' );

//output

After
null

Same filter can be used for extra custum texomony added.

function CustomTaxonomyFilter( $data ) { 
  global $wp_query; 
  $data .= wc_product_dropdown_categories( array(
    'show_option_none' => 'Filter by Brands',
    'taxonomy' => 'product_brand',
    'name' => 'product_brand',
    'selected' => isset( $wp_query->query_vars['product_brand'] ) ? $wp_query->query_vars['product_brand'] : '',
  ) );
return $data;
}
add_filter('woocommerce_product_filters','CustomTaxonomyFilter' );

Related reading:

Shiv Kumawat

Executive Director & CEO

Shiv Kumawat is the CEO of Eoxys IT Solution LLP, a Jaipur-based IT and GenAI development company he has led since 2009. Eoxys has delivered 700+ projects, building custom AI agents, chatbots, mobile apps and web platforms for businesses worldwide. Shiv writes about practical AI app development and what it takes to ship software that works.

Latest Posts

Illustration of how to build a ChatGPT plugin for your business: a chat window with a business app docked in a sidebar panel, connected to a storefront, servers and a database

Build a ChatGPT Plugin for Your Business: What DevDay Changed

At DevDay on 29 September 2026, OpenAI opened up the platform it uses to build ChatGPT’s own features. Plugins can…

Shiv Kumawat
October 12, 2026
Isometric illustration of a business hiring a remote AI development team in India, with a laptop showing an AI chip linked across a globe to developer workstations

Hire AI Developers in India: Models, Vetting and Red Flags

If you plan to hire AI developers in India, the hard part is not finding people. It is telling a…

Shiv Kumawat
October 11, 2026
DPDP compliance for AI apps: isometric shield protecting a phone and cloud server, with consent toggle, padlock and data cubes on a navy background

DPDP Compliance for AI Apps: What to Fix Before May 2027

If your app or AI chatbot handles personal data of people in India, DPDP compliance for AI apps is now…

Shiv Kumawat
October 10, 2026
,

Leave a Reply

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