I was working on implementing the media library within one of my plugins/themes. I found a nice tutorial (http://mikejolley.com/2012/12/using-the-new-wordpress-3-5-media-uploader-in-plugins/) that showed me how to do this using the JS object 'wp'

I can't seem to find any documentation on this in the codex or when Googling. How does one learn this object and its methods?

  • 2
    See core.trac.wordpress.org/ticket/26870 for the current documentation efforts.
    – fuxia
    Jan 30, 2014 at 21:04
  • Thanks for that! I'm curious how I see so many people using these objects without any documentation. Should I assume they went through the source like this person did and figured it out?
    – Shane
    Jan 30, 2014 at 21:16
  • Either that, or they have written the core part. :)
    – fuxia
    Jan 30, 2014 at 22:01
  • 1
    This isn't "documentation" per se, but you can learn a lot from reading the source and observing how Wordpress itself leverages the Media Library JS. See github.com/WordPress/WordPress/blob/master/wp-includes/js/…
    – rinogo
    Jun 22, 2017 at 18:56

2 Answers 2



It's a work in progress. Contribute if you can!

  • 4
    update (2021): ever since 2014, still work in progress. no one contributed if he could
    – user101018
    May 30, 2021 at 10:15

Since there is still no real documentation in codex/developer docs, the only way is WordPress Trac:


All components are at least commented and each file has a header with a description.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.