WC_Product_CSV_Importer_Controller::is_file_valid_csv()
Check whether a file is a valid CSV file.
Метод класса: WC_Product_CSV_Importer_Controller{}
Хуков нет.
Возвращает
true|false
.
Использование
$result = WC_Product_CSV_Importer_Controller::is_file_valid_csv( $file, $check_path );
- $file(строка) (обязательный)
- File path.
- $check_path(true|false)
- Whether to also check the file is located in a valid location .
По умолчанию: true)
Код WC_Product_CSV_Importer_Controller::is_file_valid_csv() WC Product CSV Importer Controller::is file valid csv WC 9.7.1
public static function is_file_valid_csv( $file, $check_path = true ) { return wc_is_file_valid_csv( $file, $check_path ); }