I’m developing a plugin for WordPress, where I need to create a gallery with images.
In JavaScript I call Media editor to create a gallery, using this code: wp.media.editor.open(btn).
Editor opens with default “Insert Media” tab. I would like it to open from “Create Gallery” tab. Can you please advise, how to do that?
I think what you are looking for is something like this.