Network Media Library – shares media from one central media library site to all the other sites on the network
Network Media Library is a WordPress Multisite plugin that creates a single, centralized media library. This allows all sites within the network to share and access the same set of images, documents, and other files.
Description
For site administrators, the plugin works invisibly in the background. You upload a file on any site in the network, and it is automatically placed into the shared central library. Every site can immediately use it, but behind the scenes, there is no file duplication—each image or document is stored only once, keeping your media management simple and efficient.
Installation
The plugin is available as a Composer package.
composer require humanmade/network-media-library
If you don’t use Composer, install the plugin as you would normally.
The plugin should either be installed as a mu-plugin or network activated. It’s a network plugin and therefore cannot be activated on individual sites on the network.
Site ID 2
is used by default as the central media library. You should configure your media library site ID via the filter hook network-media-library/site_id
:
add_filter( 'network-media-library/site_id', function( $site_id ) {
return 123;
} );
Usage
Use the media library normally on any site in your network. Every file you upload is automatically centralized—stored and served from one main library site. For consistent management, media items can only be deleted from the central library’s admin interface.