Change default settings for gallery for gallery post format

Is there a way to set default gallery settings values in the Media popup, when post format is gallery and user wants to insert gallery in the page using the native WordPress Uploader popup?

If not, is there an event that is triggered when user adds the images to the gallery, so I could do something like:

jQuery( document ).ready(function($) {
$(‘body’).on(‘something’,function() {
var postFormat = $(‘input[name=”post_format”]:checked’).val();
if (postFormat == ‘gallery’) {
// set the values here
}

});
});

Read more here:: Change default settings for gallery for gallery post format

Leave a Reply

Your email address will not be published. Required fields are marked *