Enable for Woocommerce and EDD tags (how to)
-
Hi there,
I just found out how to enable this feature for woocommerce and EDD Tags (not categories).
Just put it in a custom plugin or functions.php of your theme.for EDD:
/** * hierarchical support for product tags * */ function my_edd_taxonomy_args_product_tag( $array ) { $array['hierarchical'] = true; return $array; }; add_filter( 'edd_download_tag_args', 'my_edd_taxonomy_args_product_tag', 10, 1 );
For WC:
/** * hierarchical support for product tags * */ function my_woocommerce_taxonomy_args_product_tag( $array ) { $array['hierarchical'] = true; return $array; }; add_filter( 'woocommerce_taxonomy_args_product_tag', 'my_woocommerce_taxonomy_args_product_tag', 10, 1 );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Enable for Woocommerce and EDD tags (how to)’ is closed to new replies.