How do I access a method in WC_Product given an instance of WC_Product_Variable?

前端 未结 0 1710
误落风尘
误落风尘 2021-01-16 19:04

I would like to get the product ids for upsells. My old code contains depracated code:

$upsells = $product->get_upsells(); // $product is instace of WC_Pro         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题