woocommerce_download_file_xsendfile_lighttpd_file_path хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

WC_Download_Handler::download_file_xsendfile()
woocommerce_download_file_xsendfile_lighttpd_file_path
woocommerce/includes/class-wc-download-handler.php 358
$filepath = apply_filters( 'woocommerce_download_file_xsendfile_lighttpd_file_path', $parsed_file_path['file_path'], $file_path, $filename, $parsed_file_path );

Где используется хук в WooCommerce

Использование не найдено.