Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

woocommerce get product category name by id

$id = 42;
if( $term = get_term_by( 'id', $id, 'product_cat' ) ){
    echo $term->name;
}
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #woocommerce #product #category #id
ADD COMMENT
Topic
Name
7+6 =