woocommerce_csv_product_import_valid_filetypes filter-hookWC 1.0

Get all the valid filetypes for a CSV file.

Usage

add_filter( 'woocommerce_csv_product_import_valid_filetypes', 'wp_kama_woocommerce_csv_product_import_valid_filetypes_filter' );

/**
 * Function for `woocommerce_csv_product_import_valid_filetypes` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_csv_product_import_valid_filetypes_filter( $array ){

	// filter...
	return $array;
}
$array
-

Where the hook is called

WC_Product_CSV_Importer_Controller::get_valid_csv_filetypes()
woocommerce_csv_product_import_valid_filetypes
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 112-118
return apply_filters(
	'woocommerce_csv_product_import_valid_filetypes',
	array(
		'csv' => 'text/csv',
		'txt' => 'text/plain',
	)
);

Where the hook is used in WooCommerce

Usage not found.