WC_Product_Variable_Data_Store_Interface::sync_price()publicWC 1.0

Sync variable product prices with children.

Метод класса: 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_price( $product );
$product(WC_Product|int) (обязательный) (передается по ссылке — &)
Product object or ID.

Код WC_Product_Variable_Data_Store_Interface::sync_price() WC 8.6.1

public function sync_price( &$product );