WordPress at a glance
filter is not described

woocommerce_use_xsendfile_for_remote filter-hook . 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_filter( 'woocommerce_use_xsendfile_for_remote', 'filter_function_name_9840' );
function filter_function_name_9840( $false ){
	// filter...

	return $false;

Where the hook is called

woocommerce/includes/class-wc-download-handler.php 319
if ( $parsed_file_path['remote_file'] && ! apply_filters( 'woocommerce_use_xsendfile_for_remote', false ) ) {

Where in WP core the hook is used WooCommerce

Usage not found.