woocommerce_csv_importer_check_import_file_path

woocommerce_csv_importer_check_import_file_path

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_csv_importer_check_import_file_path') is found 1 times:

  • /includes/wc-conditional-functions.php line 480
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    * @since 3.6.4
     * @param bool   $check_import_file_path If requires file path check. Defaults to true.
     * @param string $file                   Path of the file to be checked.
     */
    $check_import_file_path = apply_filters( 'woocommerce_csv_importer_check_import_file_path', true, $file );
     
    if ( $check_path && $check_import_file_path && false !== stripos( $file, '://' ) ) {
        return false;
    }
     
    /**