media_sideload_image()
Function: Downloads an image from the specified URL and attaches it to a post.
Source: wp-admin/includes/media.php:864
Function: Downloads an image from the specified URL and attaches it to a post.
Source: wp-admin/includes/media.php:864