PHP code example of bueltge / multisite-global-media
1. Go to this page and download the library: Download bueltge/multisite-global-media library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bueltge / multisite-global-media example snippets
add_filter( 'global_media.site_id', function() {
return 1234;
} );
/**
* 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;
} );