Answers for "how to get list of variations of product woocommerce"

0

woocommerce get product categories

$terms = get_the_terms( $product_id, 'product_cat' );
foreach ($terms as $term) {
    $product_cat_id[] = $term->term_id;
}
Posted by: Guest on July-23-2021

Code answers related to "how to get list of variations of product woocommerce"

Browse Popular Code Answers by Language