woocommerce_file_download_method, get_option( woocommerce_file_download_method, force
woocommerce_file_download_method, get_option( woocommerce_file_download_method, force
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_file_download_method, get_option( woocommerce_file_download_method, force') is found 1 times:
- /includes/class-wc-download-handler.php line 250
* @param string $method Download method. * @param int $product_id Product ID. * @param string $file_path URL to file. */ $file_download_method = apply_filters( 'woocommerce_file_download_method', get_option( 'woocommerce_file_download_method', 'force' ), $product_id, $file_path ); // Add action to prevent issues in IE. add_action( 'nocache_headers', array( __CLASS__, 'ie_nocache_headers_fix' ) ); // Trigger download via one of the methods. do_action( 'woocommerce_download_file_' . $file_download_method, $file_path, $filename );