admin管理员组文章数量:1335349
I am working on my first script to create a WP post with images and upload those images to the uploads folder.
I am clear about wp_insert_post
and was able to upload an image to the server with wp_handle_upload
, but what do I do after it's uploaded to create all its resized versions (for responsive design) and add all the relevant metadata info to the database?
Also do I need wp_media_upload_handler
(since it takes no parameters) and, if so, how/when do I run that in relation to wp_handle_upload?
本文标签: pluginswhat functions to use to resize images and create DB metadata for them afterduring upload
版权声明:本文标题:plugins - what functions to use to resize images and create DB metadata for them afterduring upload? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742380838a2464054.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论