WC_Product_Variable_Data_Store_Interface::sync_managed_variation_stock_status()
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.
Метод класса: WC_Product_Variable_Data_Store_Interface{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$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) (обязательный) (передается по ссылке — &)
- Product object.
Код WC_Product_Variable_Data_Store_Interface::sync_managed_variation_stock_status() WC Product Variable Data Store Interface::sync managed variation stock status WC 9.4.2
public function sync_managed_variation_stock_status( &$product );