I’ve a plugin I constructed that provides a customized media body with the next:
media_frame = wp.media.frames.media_frame = wp.media({
title: 'Choose your photographs',
button: {
textual content: 'Use Picture'
},
a number of: false
});
media_frame.open();
This produces a media body that appears like this:
To this point, this has been all I wanted, however my web site makes use of WordPress Multisite and I am attempting so as to add within the Community Shared Media plugin. Nevertheless, Community Shared Media requires the media-frame-menu sidebar so as to entry community photographs. I can see the sidebar once I click on “Add Media”
What’s required so as to add that sidebar to my customized menu? I have been wanting round for hours, however have not discovered something useful.