+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: Matt Mullenweg Publishes TED Talk on the Future of Work, Prepares to Launch New Distributed.blog Website

WPTavern: Matt Mullenweg Publishes TED Talk on the Future of Work, Prepares to Launch New Distributed.blog Website Matt Mullenweg is teasing out a new website at distributed.blog with the tagline “The future of work is here.” It’s not clear yet whether subscribers to the mystery blog will be on board for blog posts, a new […]

Read more
WPTavern: WPBrigade Patches Critical Vulnerability in Simple Social Buttons Plugin

WPTavern: WPBrigade Patches Critical Vulnerability in Simple Social Buttons Plugin WPBrigade, the developers behind the Simple Social Buttons plugin, have patched a critical privilege escalation vulnerability. The security issue was discovered by the team at WebARX. Developer and researcher Luka Šikić summarized the vulnerability in a post published this week: Improper application design flow, chained […]

Read more
WPTavern: WPWeekly Episode 345 – The Relationship Between Corporate Cash and Open Source Software

WPTavern: WPWeekly Episode 345 – The Relationship Between Corporate Cash and Open Source Software In this episode, John James Jacoby and I discuss a thought-provoking post published by Morten Rand-Hendriksen that takes a deep look at equity in open source software. Morten suggests that the mantra of decisions are made by those who show up […]

Read more