Wp_delete_attachment( $row->ID ) //delete the image and also delete the attachment from the Media Library.ĭelete_option(‘ink_image’) //delete image path from database. Now, create a new file named, index.php and save it under wordpress_media_uploader folder. ( Eg wwwwordpressmy-contentpluginswordpress_media_uploader) I have created a new folder named wordpress_media_uploader and stored it under the plugin folder of my WordPress. So that you can understand how to integrate uploader functionality under your WordPress themes. Under the tutorial, I have created a plugin named, WordPress Media Uploader that helps you to upload images. Therefore many WordPress themes or plugins developers want to integrate WP Uploader functionality under Theme Options Panel or plugins.įor that, I came up with this tutorial that make it easy for you to implement such functionality under theme options panel of your WP themes or plugins. WordPress Media Uploader provide an easy way for uploading images, or other graphic files in pages or posts.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |