woocommerce_csv_importer_check_import_file_path
Filter check for CSV file path.
Использование
add_filter( 'woocommerce_csv_importer_check_import_file_path', 'wp_kama_woocommerce_csv_importer_check_import_file_path_filter', 10, 2 ); /** * Function for `woocommerce_csv_importer_check_import_file_path` filter-hook. * * @param bool $check_import_file_path If requires file path check. * @param string $file Path of the file to be checked. * * @return bool */ function wp_kama_woocommerce_csv_importer_check_import_file_path_filter( $check_import_file_path, $file ){ // filter... return $check_import_file_path; }
- $check_import_file_path(true|false)
- If requires file path check.
По умолчанию: true - $file(строка)
- Path of the file to be checked.
Список изменений
С версии 3.6.4 | Введена. |
Где вызывается хук
woocommerce_csv_importer_check_import_file_path
woocommerce/includes/wc-conditional-functions.php 471
$check_import_file_path = apply_filters( 'woocommerce_csv_importer_check_import_file_path', true, $file );