woocommerce_csv_importer_check_import_file_path
Filter check for CSV file path.
Usage
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.
Default: true - $file(string)
- Path of the file to be checked.
Changelog
Since 3.6.4 | Introduced. |
Where the hook is called
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 );