WC_Product_Variable_Data_Store_Interface::sync_price()publicWC 1.0

Sync variable product prices with children.

Method of the class: WC_Product_Variable_Data_Store_Interface{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Product_Variable_Data_Store_Interface = new WC_Product_Variable_Data_Store_Interface();
$WC_Product_Variable_Data_Store_Interface->sync_price( $product );
$product(WC_Product|int) (required) (passed by reference — &)
Product object or ID.

WC_Product_Variable_Data_Store_Interface::sync_price() code WC 9.3.3

public function sync_price( &$product );