WC_Product_Variable_Data_Store_Interface::sync_variation_names()publicWC 1.0

Syncs all variation names if the parent name is changed.

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_variation_names( $product, $previous_name, $new_name );
$product(WC_Product) (required) (passed by reference — &)
Product object.
$previous_name(string)
Previous name.
Default: ''
$new_name(string)
New name.
Default: ''

WC_Product_Variable_Data_Store_Interface::sync_variation_names() code WC 8.7.0

public function sync_variation_names( &$product, $previous_name = '', $new_name = '' );