woocommerce_download_file_xsendfile_lighttpd_file_path filter-hookWC 1.0

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

WC_Download_Handler::download_file_xsendfile()
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 );

Where the hook is used in WooCommerce

Usage not found.