WordPress at Your Fingertips
function is not described

WC_Abstract_Legacy_Product::check_stock_status() public WC 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.

{} It's a method of the class: WC_Abstract_Legacy_Product{}

No Hooks.

Return

null. Nothing.

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.

Code of WC_Abstract_Legacy_Product::check_stock_status() WC 5.6.0

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