apply_filters( 'woocommerce_use_xsendfile_for_remote' )

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.


Description Description

  1. 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.

Source Source

File: includes/class-wc-download-handler.php



Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.