WC_Product_CSV_Importer_Controller::is_file_valid_csv()public staticWC 1.0

Check whether a file is a valid CSV file.

{} It's a 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).
Default: true

Code of WC_Product_CSV_Importer_Controller::is_file_valid_csv() WC 6.7.0

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