WP Global Admin
Introduces a global admin panel in WordPress.
What it does
- introduces an entirely new administration panel, the global administration panel
- introduces global administrators and adjust capabilities so that certain setup-wide actions can no longer be performed by network administrators
- shows all users in the global administration panel, and only the ones in the current network in the network administration panel (if the WP Network Roles plugin is activated)
- includes a global settings page in the new administration panel
- includes custom dashboard widgets for the global administration panel
- introduces a global user count, network count and site count, and fixes the incorrect network user count to actually only count users of the respective network (if the WP Network Roles is activated)
- supports the WP Multi Network plugin, the WP Network Roles plugin and the WP User Signups plugin
How to install
The plugin can either be installed as a network-wide regular plugin or alternatively as a must-use plugin.
In order to expose the global admin, your setup must either already contain multiple networks, or you need to add a
MULTINETWORK constant to
wp-config.php and set it to true.
- While it is a best practice to prefix plugin functions and classes, this plugin is a proof-of-concept for WordPress core, and several functions may end up there eventually. This plugin only prefixes functions and classes that are specific to the plugin, internal helper functions for itself or hooks. Non-prefixed functions and classes are wrapped in a conditional so that, if WordPress core adapts them, their core variant will be loaded instead. Therefore, do not define any of the following functions or classes:
Adjusting Global Capabilities
Any primitive capability that is registered as a global capability is only available to global administrators, and will no longer be allowed to network administrators. By default, the following primitive capabilities are global capabilities:
This list can be adjusted via the
As an additional change, mapping for all capabilities that handle server file changes (such as updates and usage of file editors) has been adjusted so that only global administrators can perform them.
Some parts of the plugin are very hacky to have WordPress behave the required way. Custom administration panels are not supported, therefore this is a necessary evil. Some minor issues can still appear as they can't be addressed at this point (for example functions like
is_blog_admin() will not take the global administration panel into account). This Trac ticket aims to solve it.