# Support Woocommerce Tags - Tags loads in category while create rules

```php
function woo_discount_rules_accepted_taxonomy_for_category_method($taxonomy){
    $taxonomy[] = 'product_tag';
    return $taxonomy;
}

add_filter('woo_discount_rules_accepted_taxonomy_for_category', 'woo_discount_rules_accepted_taxonomy_for_category_method', 10);

function woo_discount_rules_load_additional_taxonomy_method($categories, $product_id){
    $tags = get_the_terms( $product_id, 'product_tag' );
    if(!empty($tags)){
        foreach ($tags as $tag){
            $categories[] = $tag->term_id;
        }
    }


    return $categories;
}
add_filter('woo_discount_rules_load_additional_taxonomy', 'woo_discount_rules_load_additional_taxonomy_method', 10, 2);
```
