WC_Product::get_stock_managed_by_id()publicWC 3.0.0

If the stock level comes from another product ID, this should be modified.

Метод класса: WC_Product{}

Хуков нет.

Возвращает

int.

Использование

$WC_Product = new WC_Product();
$WC_Product->get_stock_managed_by_id();

Список изменений

С версии 3.0.0 Введена.

Код WC_Product::get_stock_managed_by_id() WC 8.7.0

public function get_stock_managed_by_id() {
	return $this->get_id();
}