Discount Sale
  • Days
  • Hrs
  • Mins
  • Secs
30% Off

Use coupon code 'MDS30' Limited Offer!!

Star

Home > Docs > Filter and Export WooCommerce Products using Custom Taxonomy

Filter and Export WooCommerce Products using Custom Taxonomy

Last updated on May 15, 2025

There may be instances where you want to include additional categories, tags, brands, or other custom attributes—collectively known as taxonomies—to organize products on your WordPress site better. By default, WordPress does not support custom taxonomies for products, so you’ll need a third-party plugin to create and manage them. When using the Product import export plugin for WooCommerce, you might want to filter export data based on these custom taxonomies. To enable this functionality, you’ll need to add a code snippet to your theme’s functions.php file. Just follow the steps outlined below to get started.

  • From the WordPress admin dashboard, navigate to Appearance > Theme File Editor.
  • Under Theme Files, select Theme Functions (functions.php).
  • Paste the code snippet at the end of the functions.php file of your active child theme.

Code Snippet:

To deal with different custom taxonomies, you just have to change the existing taxonomy name: product_brand at line 3 to the required taxonomy name.