Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

woocommerce get post terms product

$term_obj_list = get_the_terms( $post->ID, 'taxonomy' );
$terms_string = join(', ', wp_list_pluck($term_obj_list, 'name'));
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #woocommerce #post #terms #product
ADD COMMENT
Topic
Name
4+5 =