public
Created

Multisite Toolbar Additions -- constants for customizing

  • Download Gist
gistfile1.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?php
 
// since plugin version v1.0:
 
// Constants:
 
/** Multisite Toolbar Additions: Disable Custom Nav Menu for Super Admins */
define( 'MSTBA_SUPER_ADMIN_NAV_MENU', FALSE );
 
/** Multisite Toolbar Additions: Disable Plugin Support for Network Wide Plugins */
define( 'MSTBA_DISPLAY_NETWORK_EXTEND_GROUP', FALSE );
 
/** Multisite Toolbar Additions: Disable Plugin Support for (Sub) Site Specific Plugins */
define( 'MSTBA_DISPLAY_SITE_EXTEND_GROUP', FALSE );
 
/** Multisite Toolbar Additions: Disable Site Specific Items */
define( 'MSTBA_DISPLAY_SITE_GROUP', FALSE );
 
/** Multisite Toolbar Additions: Remove Network Admin specific Items for user ID 2 */
if ( 2 == get_current_user_id() ) {
define( 'MSTBA_DISPLAY_NETWORK_ITEMS', FALSE );
}
 
/** Multisite Toolbar Additions: Remove Network Admin specific Items from frontend */
if ( ! is_admin() ) {
define( 'MSTBA_DISPLAY_NETWORK_ITEMS', FALSE );
}

Note: The above codes work with plugin version 1.0 or higher!

Extended explanation can be found at the plugin's page "FAQ" section:
http://wordpress.org/extend/plugins/multisite-toolbar-additions/faq/

Download "Multisite Toolbar Additions" plugin at wordpress.org:
http://wordpress.org/extend/plugins/multisite-toolbar-additions/

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.