Sorry for my English.
Media Manager.
I need that in the admin edit page, when the user clicks on “add Media”, the default in the new frame will be “Create Gallery” and not “Insert Media”.
I think, that the script for it is in the media-editor.js in wp/inclodes/js.
There, if I change line 1009 - “state: 'insert’,” into “state: ‘gallery,”, and do the same in the media-editor.min.js, it works, and the frame is opened with “Create Galley”.
Well, the question: how can I do the same using actions or filters in the function.php?
Thanks