Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

David on "Wordpress Media Manager 3.9 - default Create Gallery"

$
0
0

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


Viewing all articles
Browse latest Browse all 8245

Trending Articles