7

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?

4
  • 2
    See core.trac.wordpress.org/ticket/26870 for the current documentation efforts.
    – fuxia
    Jan 30 '14 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 '14 at 21:16
  • Either that, or they have written the core part. :)
    – fuxia
    Jan 30 '14 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 '17 at 18:56
3

http://codex.wordpress.org/Javascript_Reference/wp

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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