woocommerce_download_file_xsendfile_file_path filter-hook . WC 1.0
Usage
add_filter( 'woocommerce_download_file_xsendfile_file_path', 'filter_function_name_8106', 10, 4 ); function filter_function_name_8106( $parsed_file_path_file_path, $file_path, $filename, $parsed_file_path ){ // filter... return $parsed_file_path_file_path; }
- $parsed_file_path_file_path
- -
- $file_path
- -
- $filename
- -
- $parsed_file_path
- -
Where the hook is called
woocommerce_download_file_xsendfile_file_path
woocommerce/includes/class-wc-download-handler.php 326
$filepath = apply_filters( 'woocommerce_download_file_xsendfile_file_path', $parsed_file_path['file_path'], $file_path, $filename, $parsed_file_path );