WordPress at Your Fingertips
function is not described

WC_Product_Variable_Data_Store_Interface::sync_managed_variation_stock_status() public WC 1.0

Stock managed at the parent level - update children being managed by this product. This sync function syncs downwards (from parent to child) when the variable product is saved.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_Variable_Data_Store_Interface = new WC_Product_Variable_Data_Store_Interface();
$WC_Product_Variable_Data_Store_Interface->sync_managed_variation_stock_status( $product );
$product(WC_Product) (required) (passed by reference — &)
Product object.

Code of WC_Product_Variable_Data_Store_Interface::sync_managed_variation_stock_status() WC 5.7.1

public function sync_managed_variation_stock_status( &$product );