2020-05-01 / 3512阅 / 悠然
Downloads a URL to a local temporary file using the WordPress HTTP API.
Please note that the calling function must unlink() the file.
(string)
(Required)
The URL of the file to download.
(int)
(Optional)
The timeout for the request to download the file. Default 300 seconds.
Default value: 300
(bool)
(Optional)
Whether to perform Signature Verification.
Default value: false
(string|WP_Error) Filename>WP_Error on failure.