WC_Product_Variable_Data_Store_Interface::sync_variation_names
Syncs all variation names if the parent name is changed.
Method of the class: WC_Product_Variable_Data_Store_Interface{}
No Hooks.
Returns
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() WC Product Variable Data Store Interface::sync variation names code WC 10.5.0
public function sync_variation_names( &$product, $previous_name = '', $new_name = '' );