WordPress at a glance
filter is not described

woocommerce_csv_import_valid_filetypes filter-hook . WC 3.6.5

Filter CSV valid file types.

Usage

add_filter( 'woocommerce_csv_import_valid_filetypes', 'filter_function_name_6009' );
function filter_function_name_6009( $valid_filetypes ){
	// filter...

	return $valid_filetypes;
}
$valid_filetypes(array)
List of valid file types.

Changelog

Since 3.6.5 Introduced.

Where the hook is called

wc_is_file_valid_csv()
woocommerce_csv_import_valid_filetypes
woocommerce/includes/wc-conditional-functions.php 481-487
$valid_filetypes = apply_filters(
	'woocommerce_csv_import_valid_filetypes',
	array(
		'csv' => 'text/csv',
		'txt' => 'text/plain',
	)
);

Where in WP core the hook is used WooCommerce

Usage not found.