Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Enable for Woocommerce and EDD tags (how to)

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles