Created
August 28, 2012 14:30
-
-
Save deckerweb/3498510 to your computer and use it in GitHub Desktop.
Multisite Toolbar Additions -- constants for customizing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/