woocommerce_download_file_xsendfile_lighttpd_file_path
Usage
add_filter( 'woocommerce_download_file_xsendfile_lighttpd_file_path', 'wp_kama_woocommerce_download_file_xsendfile_lighttpd_path_filter', 10, 4 ); /** * Function for `woocommerce_download_file_xsendfile_lighttpd_file_path` filter-hook. * * @param $parsed_file_path_file_path * @param $file_path * @param $filename * @param $parsed_file_path * * @return */ function wp_kama_woocommerce_download_file_xsendfile_lighttpd_path_filter( $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_lighttpd_file_path
woocommerce/includes/class-wc-download-handler.php 370
$filepath = apply_filters( 'woocommerce_download_file_xsendfile_lighttpd_file_path', $parsed_file_path['file_path'], $file_path, $filename, $parsed_file_path );