Title: Media Upload API
Last modified: August 19, 2016

---

# Media Upload API

 *  Resolved [Hax](https://wordpress.org/support/users/hax/)
 * (@hax)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/media-upload-api/)
 * Hi I am creating a plugin and I want to use the media upload from wordpress to
   upload images but I can’t find any api on it. Can any body direct me to the right
   page or let me know how can I accomplish this. thank you

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/media-upload-api/#post-1380109)
 * I think most of the key functions are in `wp-admin/includes/media.php`.
 *  [adelante](https://wordpress.org/support/users/adelante/)
 * (@adelante)
 * [16 years ago](https://wordpress.org/support/topic/media-upload-api/#post-1380390)
 * Maybe any documentation exists? I have same question as Hax.
 *  [craig552uk](https://wordpress.org/support/users/craig552uk/)
 * (@craig552uk)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/media-upload-api/#post-1380391)
 * [http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/](http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/)
 *  Thread Starter [Hax](https://wordpress.org/support/users/hax/)
 * (@hax)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/media-upload-api/#post-1380392)
 * I was able to make it work and there is really no API that I could find, I had
   to go trough the whole `wp-admin/includes/media.php` file to get it to work as
   apljdi suggested.
 * The link that craig552uk provided is great if you using the media upload for 
   menu pages, but I wanted to use it on a widget. so is a bit more complicated 
   because I need to modify the content passed by javascript and pass an extra parameter
   so that I did affect the default functionality of the media upload.
 * here are some additional hook that may be helpful for some people
 *     ```
       add_filter( 'media_upload_tabs', 'media_upload_tabs'); //hide media tabs
       add_filter( 'media_send_to_editor', 'media_send_to_editor' ); //to modified the string send by javascript
       add_filter( 'media_upload_form_url', 'media_upload_form_url' ); //used to send new parameter
       ```
   
 * Thank you for all your help.
 *  [egodfrey](https://wordpress.org/support/users/egodfrey/)
 * (@egodfrey)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/media-upload-api/#post-1380399)
 * Hax, your my hero. Thanks for helping me track those hooks down. Please, some
   one document that.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Media Upload API’ is closed to new replies.

 * 5 replies
 * 5 participants
 * Last reply from: [egodfrey](https://wordpress.org/support/users/egodfrey/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/media-upload-api/#post-1380399)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
