WC_Product_Variation::get_stock_managed_by_id() public WC 3.0.0
If the stock level comes from another product ID.
{} Это метод класса: WC_Product_Variation{}
Хуков нет.
Возвращает
Число.
Использование
$WC_Product_Variation = new WC_Product_Variation(); $WC_Product_Variation->get_stock_managed_by_id();
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Product_Variation::get_stock_managed_by_id() WC Product Variation::get stock managed by id WC 5.0.0
public function get_stock_managed_by_id() {
return 'parent' === $this->get_manage_stock() ? $this->get_parent_id() : $this->get_id();
}