2Hats . 1 minute
August 14, 2015

How to use WordPress 3.5 media uploader in wordpress themes, theme option or plugin

Here is a simple tip. Sometime we need to add WordPress file uploader in our theme, theme option or plugin files. For example in theme option we create an interface for changing the favicon of the site, then we need a file uploader with WordPress media library. So here we can use WordPress custom file uploader.You can add a WordPress file uploader to your theme or plugin with the following steps:
Include the following jquery :

Write this code in functions.php
Create form element for uploading :
blog
Greetings! I'm Aneesh Sreedharan, CEO of 2Hats Logic Solutions. At 2Hats Logic Solutions, we are dedicated to providing technical expertise and resolving your concerns in the world of technology. Our blog page serves as a resource where we share insights and experiences, offering valuable perspectives on your queries.
Aneesh ceo
Aneesh Sreedharan
Founder & CEO, 2Hats Logic Solutions
Subscribe to our Newsletter
Arsha Content writer

    Stay In The Loop!

    Subscribe to our newsletter and learn about the latest digital trends.