WordPress at Your Fingertips
function is not described

WC_Product_CSV_Importer_Controller::get_valid_csv_filetypes() protected WC 1.0

Get all the valid filetypes for a CSV file.

{} It's a method of the class: WC_Product_CSV_Importer_Controller{}

Return

Array.

Usage

$result = WC_Product_CSV_Importer_Controller::get_valid_csv_filetypes();

Code of WC_Product_CSV_Importer_Controller::get_valid_csv_filetypes() WC 5.9.0

protected static function get_valid_csv_filetypes() {
	return apply_filters(
		'woocommerce_csv_product_import_valid_filetypes',
		array(
			'csv' => 'text/csv',
			'txt' => 'text/plain',
		)
	);
}