WordPress at Your Fingertips
function is not described

WC_Post_Data::sync_product_stock_status() public WC 1.0

Deprecated from version 3.3. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

When setting stock level, ensure the stock status is kept in sync.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Post_Data::sync_product_stock_status( $meta_id, $object_id, $meta_key, $meta_value );
$meta_id(int) (required)
Meta ID.
$object_id(int) (required)
Object ID.
$meta_key(string) (required)
Meta key.
$meta_value(mixed) (required)
Meta value.

Changelog

Deprecated 3.3

Code of WC_Post_Data::sync_product_stock_status() WC 5.6.0

public static function sync_product_stock_status( $meta_id, $object_id, $meta_key, $meta_value ) {}