在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):humanmade/network-media-library开源软件地址(OpenSource Url):https://github.com/humanmade/network-media-library开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Network Media LibraryNetwork Media Library is a plugin for WordPress Multisite which provides a central media library that's shared across all sites on the Multisite network. DescriptionThis small plugin transparently shares media from one central media library site to all the other sites on the network. All media that's uploaded gets transparently directed to the central media site, and subsequently made available network-wide. Nothing is copied, cloned, synchronised, or mirrored, so for each file that's uploaded there's only one attachment and one copy of the file. Minimum RequirementsPHP: 7.0 InstallationThe plugin is available as a Composer package.
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 add_filter( 'network-media-library/site_id', function( $site_id ) {
return 123;
} ); UsageUse the media library on the sites on your network just as you would normally. All media will be transparently stored on and served from the chosen central media library site. Attachments can be deleted only from within the admin area of the central media library. CompatibilityNetwork Media Library works transparently and seamlessly with all built-in WordPress media functionality, including uploading files, cropping images, inserting media into posts, and viewing attachments. Its functionality works with the site icon, site logo, background and header images, featured images, galleries, the audio and image widgets, and regular media management. The plugin works with the block editor, the classic editor, the REST API, XML-RPC, and all standard Ajax endpoints for media management. Links to media from other sites mostly work, although there are a couple of edge case bugs in WordPress core that need to be fixed (I'll get to these soon). Compatibility with third-party plugins is good, but not guaranteed. The following plugins and libraries are explicitly supported by Network Media Library: The following plugins and libraries have been tested and confirmed as compatible out of the box: I plan to fully test (and add support if necessary) many other plugins and libraries, including CMB2, Fieldmanager, and many gallery and media management plugins. Stay tuned for updates! ScreenshotsThere are no screenshots to show as Network Media Library operates transparently and introduces no new UI. Simply upload, manage, insert, and use your media as you would normally, and everything will operate through the central media library. LicenseGood news, this plugin is free for everyone! Since it's released under the MIT, you can use it free of charge on your personal or commercial site. HistoryThis plugin originally started life as a fork of the Multisite Global Media plugin by Frank Bültge and Dominik Schilling at Inpsyde, but has since diverged entirely and retains little of the original functionality. The initial fork of this plugin was made as part of a client project at Human Made. We build and manage high-performance WordPress websites for some of the largest publishers in the world. Hurrah for open source! AlternativesIf the Network Media Library plugin doesn't suit your needs, try these alternatives: |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论