0
正如标题所说,获取购物车页面中包含的产品的产品类别的最佳方法是什么?在购物车页面中获取产品的product_cat woocommerce
正如标题所说,获取购物车页面中包含的产品的产品类别的最佳方法是什么?在购物车页面中获取产品的product_cat woocommerce
WC()->cart->get_cart()
$content['product_id']
get_the_terms($product_id, 'product_cat')
$term->name