2020-05-02 / 2809阅 / 悠然
从指定的URL下载图像并将其附加到帖子。
(string)
(Required)
The URL of the image to download.
(int)
(Optional)
The post ID the media is to be associated with.
(string)
(Optional)
Description of the image.
Default value: null
(string)
(Optional)
Accepts 'html' (image tag html) or 'src' (URL), or 'id' (attachment ID).
Default value: 'html'
(string|WP_Error) Populated HTML img tag>WP_Error object otherwise.