WC_Product_Variation::get_stock_managed_by_id()
If the stock level comes from another product ID.
Description Description
Return Return
(int)
Source Source
File: includes/class-wc-product-variation.php
public function get_stock_managed_by_id() {
return 'parent' === $this->get_manage_stock() ? $this->get_parent_id() : $this->get_id();
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |