Regarding custom plugin

Closed

Import WP Addon - WooCommerce Updated 3 months ago 2 Replies

George asked 3 months ago on February 27, 2024 at 8:53 am

At this custom plugin can we also use product tags and not only brands?

J

James replied Support Agent

3 months ago on February 27, 2024 at 9:12 am

Yes you can modify the code to use what ever taxonomy you would like:

[
    'taxonomy' => 'product_brand',
    'field' => 'name',
    'terms' => 'Sparke',
]

changing it to what ever taxonomy required (e.g. finding the archive screen for the taxonomy you can get the taxonomy name: https://your.site/wp-admin/edit-tags.php?taxonomy=category)

[
    'taxonomy' => 'category',
    'field' => 'name',
    'terms' => 'Cat 1',
]

 

GF

George replied

3 months ago on February 27, 2024 at 5:45 pm

I did it and it worked, thanks