Stars: 203
Forks: 44
Pull Requests: 43
Issues: 103
Watchers: 19
Last Updated: 2023-04-25 06:26:56
Share a media library across the WordPress Multisite network
License: GNU General Public License v2.0
Languages: JavaScript, CSS, PHP, Shell
Multisite Global Media is a WordPress plugin that shares media across the Multisite network.
This small plugin adds a new tab to the media library, which allows you to share media from one site to all the other sites of the network. By default, the Site ID is set to '1'. You can set/change this Site ID via the filter hook global_media.site_id
which is run in a custom plugin like so
add_filter( 'global_media.site_id', function() {
return 1234;
} );
To get Global Media to work, please follow these steps:
site-info.php?id=4
where the last number is the ID.Note: A useful enhancement in the Multisite context is the plugin Multisite Enhancement. It also helps to identify the site and get his site ID.
If you need to change the default Site ID '1' to another value, then you can do so by creating a small custom plugin.
/wp-content/mu-plugins/
create a new folder mgm-set-my-site-id
.In /wp-content/mu-plugins/mgm-set-my-site-id/
create a new file mgm-set-my-site-id.php
.<?php
/**
* Plugin Name: Multisite Global Media Site ID
* Plugin URI: https://github.com/bueltge/multisite-global-media/
* Description: Set my Multisite Global Media site in the network.
* Version: 1.0.0
* Network: true
*/
add_filter( 'global_media.site_id', function() {
return 1234;
} );
The plugin is also available as Composer package.
composer require bueltge/multisite-global-media
Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Please give me feedback, contribute and file technical bugs on this GitHub Repo, use Issues.
Good news, this plugin is free for everyone! Since it's released under the GPLv2+.
The plugin is designed and developed by team members from the Inpsyde crew. Special thanks and praise to Dominik Schilling and Guido Scialfa for his help and engagement.
Please let me know if you like the plugin or you hate it or whatever.
Please fork it and improve the plugin. However, see the Contributing note above. Add an issue for ideas and bugs. Also, we say thank you for improvements in the documentation and help in the support.
We don't speak the English language natively, and maybe it might be gruesome here and there. So please be patient with me and let me know of typos or grammatical errors. Thank you!