WordPress at a glance
filter is not described

woocommerce_delete_variations_on_product_type_change filter-hook . WC 5.0.0

Filter to prevent variations from being deleted while switching from a variable product type to a variable product type.

Usage

add_filter( 'woocommerce_delete_variations_on_product_type_change', 'filter_function_name_5770', 10, 3 );
function filter_function_name_5770( $condition, $product, $to ){
	// filter...

	return $condition;
}
$condition(true|false)
A boolean value of true will delete the variations.
$product(WC_Product)
Product data.
$to
-

Changelog

Since 5.0.0 Introduced.

Where the hook is called

WC_Post_Data::product_type_changed()
woocommerce_delete_variations_on_product_type_change
woocommerce/includes/class-wc-post-data.php 142
if ( apply_filters( 'woocommerce_delete_variations_on_product_type_change', 'variable' === $from && 'variable' !== $to, $product, $from, $to ) ) {

Where in WP core the hook is used WooCommerce

Usage not found.