Function Reference/download url
Downloads a url to a local temporary file using the WordPress HTTP Class.
Please note that the calling function must unlink() the file.
- (string) (required) the URL of the file to download
- Default: None
- (integer) (optional) The timeout for the request to download the file default 300 seconds
- Default: 300
- WP_Error on failure, string Filename on success.
download_url() is located in