WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
событие не описано

woocommerce_download_file_force хук-событие . WC 1.0

Fallback on force download method for remote files. This is because:

  1. xsendfile needs proxy configuration to work for remote files, which cannot be assumed to be available on most hosts.
  2. Force download method is more secure than redirect method if allow_url_fopen is enabled in php.ini. We fallback to redirect method in force download method anyway in case allow_url_fopen is not enabled.


add_action( 'woocommerce_download_file_force', 'action_function_name_5520', 10, 2 );
function action_function_name_5520( $file_path, $filename ){
	// action...

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

woocommerce/includes/class-wc-download-handler.php 320
do_action( 'woocommerce_download_file_force', $file_path, $filename );

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

woocommerce/includes/class-wc-download-handler.php 27
add_action( 'woocommerce_download_file_force', array( __CLASS__, 'download_file_force' ), 10, 2 );