WordPress at a glance
filter is not described

woocommerce_duplicate_product_exclude_meta filter-hook . WC 2.6

Filter to allow us to exclude meta keys from product duplication..

Usage

add_filter( 'woocommerce_duplicate_product_exclude_meta', 'filter_function_name_1972', 10, 2 );
function filter_function_name_1972( $exclude_meta, $existing_meta_keys ){
	// filter...

	return $exclude_meta;
}
$exclude_meta(array)
The keys to exclude from the duplicate.
$existing_meta_keys(array)
The meta keys that the product already has.

Changelog

Since 2.6 Introduced.

Where the hook is called

WC_Admin_Duplicate_Product::product_duplicate()
woocommerce_duplicate_product_exclude_meta
woocommerce/includes/admin/class-wc-admin-duplicate-product.php 139-148
apply_filters(
	'woocommerce_duplicate_product_exclude_meta',
	array(),
	array_map(
		function ( $datum ) {
			return $datum->key;
		},
		$product->get_meta_data()
	)
)

Where in WP core the hook is used WooCommerce

Usage not found.