WC_Product_CSV_Importer_Controller::is_file_valid_csv
Check whether a file is a valid CSV file.
Method of the class: WC_Product_CSV_Importer_Controller{}
No Hooks.
Returns
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() WC Product CSV Importer Controller::is file valid csv code WC 10.3.3
public static function is_file_valid_csv( $file, $check_path = true ) {
return wc_is_file_valid_csv( $file, $check_path );
}