WC_Product_CSV_Importer_Controller::is_file_valid_csv()public staticWC 1.0

Check whether a file is a valid CSV file.

Method of the class: WC_Product_CSV_Importer_Controller{}

No Hooks.

Return

true|false.

Usage

$result = WC_Product_CSV_Importer_Controller::is_file_valid_csv( $file, $check_path );
$file(string) (required)
File path.
$check_path(true|false)
Whether to also check the file is located in a valid location .
Default: true)

WC_Product_CSV_Importer_Controller::is_file_valid_csv() code WC 8.7.0

public static function is_file_valid_csv( $file, $check_path = true ) {
	return wc_is_file_valid_csv( $file, $check_path );
}