Skip to main content
11 events
when toggle format what by license comment
Feb 20, 2020 at 20:38 comment added Kirkland @butlerblog I could be wrong, but that looks like an example of how to do it before WP included Backbone. BackboneJS has been officially included in WordPress since version 3.5 and is used for core features like the Media Library now. The accepted answer below illustrates the new way.
Feb 20, 2020 at 20:29 vote accept Kirkland
Feb 20, 2020 at 4:46 comment added butlerblog Does this answer your question? Use Media Uploader in Plugin
Feb 19, 2020 at 9:15 answer added Kirkland timeline score: 2
Feb 18, 2020 at 9:45 review Close votes
Feb 26, 2020 at 22:54
Feb 18, 2020 at 9:44 comment added Kirkland @Yashar The link in your second comment is a step in the right direction, but barely scratches the surface. I dug through source code and solved this. When I have time I'll post the answer. Long story short... WP is using Backbone.js for this now. I initiated UploaderInline and UploaderWindow and handled file uploads like normal.
Feb 18, 2020 at 9:37 comment added Kirkland The links from your first comment are between 4 and 8 years old. The Media Library has been rebuilt. None of those answers apply
Feb 18, 2020 at 9:27 comment added Yashar Does this answer your question? Can I use the wp media uploader for my own plugin?
Feb 18, 2020 at 9:21 comment added Yashar Seriously? Couldn't find anything? SOF Link1 SOF Link2 WPSE External Link
Feb 17, 2020 at 19:43 history edited Kirkland CC BY-SA 4.0
added 8 characters in body
Feb 17, 2020 at 19:32 history asked Kirkland CC BY-SA 4.0