WC_Abstract_Legacy_Product::check_stock_status()publicWC 1.0

Deprecated from version 3.0.0 Sync is done automatically on read/save, so calling this should not be needed any more.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Check if the stock status needs changing.

Method of the class: WC_Abstract_Legacy_Product{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Abstract_Legacy_Product = new WC_Abstract_Legacy_Product();
$WC_Abstract_Legacy_Product->check_stock_status();

Changelog

Deprecated since 3.0.0 Sync is done automatically on read/save, so calling this should not be needed any more.

WC_Abstract_Legacy_Product::check_stock_status() code WC 8.7.0

public function check_stock_status() {
	wc_deprecated_function( 'WC_Product::check_stock_status', '3.0' );
}