WC_Product_CSV_Importer_Controller::is_file_valid_csv()public staticWC 1.0

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 7.3.0

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