Show media-frame-menu on custom Media Frame
I have a plugin I built that adds a custom media frame with the following:
media_frame = wp.media.frames.media_frame = wp.media({
title: 'Select your images',
button: {
text: 'Use Image'
},
multiple: false
});
media_frame.open();
This produces a media frame that looks like this:
Thus far, this has been all I needed, but my site uses Wordpress Multisite and I'm trying to add in the Network Shared Media plugin. However, Network Shared Media requires the media-frame-menu sidebar in order to access network images. I can see the sidebar when I click "Add Media"
What is required to add that sidebar to my custom menu? I've been looking around for hours, but haven't found anything helpful.
Topic media-modal admin-menu uploads multisite images Wordpress
Category Web