woocommerce_file_download_method

woocommerce_file_download_method

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_file_download_method') is found 1 times:

  • /includes/class-wc-download-handler.php line 251
    		 * @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 );