Answer the question
In order to leave comments, you need to log in
How can I find out which taxonomy a label belongs to?
I implement product filters, not Woocommerce.
Answer the question
In order to leave comments, you need to log in
An object of type WP_Term contains the name of the taxonomy in the $term->taxonomy property.
Get_term( $term_id ) is used to get the term object.
$term = get_term( $term_id );
echo $term->taxonomy;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question