admin管理员组

文章数量:1315258

When the client installs my theme I would like to automatically download images and add them to the media library, e.g. from links like this:

.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940

How would I do this? Do I need to use wp_insert_attachment ?

Thanks

本文标签: Put images in the media from url functions