DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+4 =
Submit