WC_Product_Variation::get_stock_managed_by_id()

If the stock level comes from another product ID.


Description Description


Return Return

(int)


Top ↑

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();
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.