Open studiolxv opened 5 years ago
Solved: Just enqueue the .js on the customize.php
// Add Global Media Gallery JS to Customize.php
function add_multisite_global_media_to_customizer() {
wp_register_script( 'multisite_global_media', '/wp-content/plugins/multisite-global-media/assets/js/global-media.js', array('jquery'),'1.1', true );
wp_enqueue_script( 'multisite_global_media' );
}
add_action( 'customize_controls_print_footer_scripts', 'add_multisite_global_media_to_customizer' );`
Thanks - added top the wiki https://github.com/bueltge/multisite-global-media/wiki
@bueltge Cannot we enqueue the script as @studiolxv suggested? I can create a pull request in case.
@widoz Why not, sure. Currently I have no time for work on the plugin. However I would create a new version, include release script to makes much easier for user to use them without composer knowledge and improve the readme.
It appears the Global Media gallery not populating on customizer image uploads pop up dialogs.