WC_Product::get_stock_managed_by_id()publicWC 3.0.0

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

Method of the class: WC_Product{}

No Hooks.

Return

Int.

Usage

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

Changelog

Since 3.0.0 Introduced.

WC_Product::get_stock_managed_by_id() code WC 8.6.1

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