WC_Post_Data::sync_product_stock_status()public staticWC 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.


null. Nothing.


$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.


Deprecated 3.3

Code of WC_Post_Data::sync_product_stock_status() WC 6.7.0

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