WordPress at Your Fingertips
function is not described

WC_Product::get_stock_managed_by_id() public WC 3.0.0

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

{} It's a 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.

Code of WC_Product::get_stock_managed_by_id() WC 5.5.2

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