+44 0330 223 3428
Call Us
+44 0330 223 3428

WPTavern: New Network Media Library Plugin Creates a Shared Library on a Multisite Network

WPTavern: New Network Media Library Plugin Creates a Shared Library on a Multisite Network

WordPress core committer John Blackbourn has released a new plugin called Network Media Library that provides a shared media library across all sites on a WordPress multisite network. Blackbourn is an engineer at Human Made and the plugin is one he created for a client by forking Frank Bültge and Dominik Schilling’s Multisite Global Media plugin.

By default, the plugin uses site ID 2 for the central media library, but the site ID can be customized via a filter hook. Access to the network-wide library is currently restricted to users who have Author level permissions with the upload_files capability on the central media site. In the plugin’s description Blackbourn said the plan for future versions is to remove the need for users to be added to the central media library.

After testing it locally, I discovered what the plugin’s description meant by “transparently” uploading media to the central media site. Unlike other plugins that perform a similar function (i.e. Network Shared Media and Multisite Global Media), there is no indication that files are part of a network-wide library. For example, Multisite Global Media adds a “Global Media” tab to the media library to indicate which files are aggregated from sites on the network. The Network Media Library plugin works in an invisible way without adding a separate tab to the media library.

Frank Bültge, co-author of the Multisite Global Media plugin, asked Blackbourn why he opted to fork the plugin instead of enhancing it. Blackbourn said the main difference is that the original plugin supports local media files and his fork does not.

Developers who implement Network Media Library on their sites should be aware that it is still under active development. It currently has built-in compatibility with the Regenerate Thumbnails and WP User Avatars plugins. The plugin also has been confirmed to be compatible with BuddyPress, Extended CPTs, Gutenberg, Stream and User Profile Picture. Blackbourn plans to test and support many more plugins in the future, including CMB2, ACF, and assorted gallery and media management plugins.

Network Media Library is MIT-licensed and available on GitHub. It requires WordPress 4.9+ and PHP 7.0+. The plugin can be installed as a mu-plugin or network activated.


WordPress core committer John Blackbourn has released a new plugin called Network Media Library that provides a shared media library across all sites on a WordPress multisite network. Blackbourn is an engineer at Human Made and the plugin is one he created for a client by forking Frank Bültge and Dominik Schilling’s Multisite Global Media plugin. By default, the plugin uses site ID 2 for the central media library, but the site ID can be customized via a filter hook. Access to the network-wide library is currently restricted to users who have Author level permissions with the upload_files capability on…

Source: WordPress

Related Post
WPTavern: Apache NetBeans is Now a Top-Level Project of the Apache Software Foundation

WPTavern: Apache NetBeans is Now a Top-Level Project of the Apache Software Foundation The Apache Software Foundation (ASF), a non-profit corporation of decentralized volunteers from the open source developer community, has officially approved the NetBeans IDE as a Top-Level project. NetBeans joins more than 350 other open source projects and initiatives managed by the foundation […]

Read more
WordPress.org blog: WordPress 5.2 Release Candidate

WordPress.org blog: WordPress 5.2 Release Candidate The first release candidate for WordPress 5.2 is now available! This is an important milestone as we progress toward the WordPress 5.2 release date. “Release Candidate” means that the new version is ready for release, but with millions of users and thousands of plugins and themes, it’s possible something […]

Read more
BuddyPress: BuddyPress 4.3.0 Security and Maintenance Release

BuddyPress: BuddyPress 4.3.0 Security and Maintenance Release BuddyPress 4.3.0 is now available. This is a security and maintenance release. All BuddyPress installations are strongly encouraged to upgrade as soon as possible. The 4.3.0 release addresses nine security issues: A privilege escalation vulnerability was fixed that could allow users to “favorite” activity items to which they […]

Read more