Let's cut to the chase:
popup = wp.media({
frame: 'post',
state: 'insert',
library: {
type: [ 'image' ]
},
multiple: false
});
There is a list of arguments I use when opening wp.media popup above. It works great but I'd like to hide the popup's left hand side menu (the one which allows you to select either image insert or gallery insert) and right hand side media details sidebar (the one with all selected media file details). Are there any arguments to be passed to wp.media
which could help to achieve that or shall I rather use popup.on( 'open', function() {...});
instead?
Cheers, Dan.