Skip to content

Instantly share code, notes, and snippets.

@deckerweb
Created August 28, 2012 14:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deckerweb/3498510 to your computer and use it in GitHub Desktop.
Save deckerweb/3498510 to your computer and use it in GitHub Desktop.
Multisite Toolbar Additions -- constants for customizing
<?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 );
}
@deckerweb
Copy link
Author

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment