No description, website, or topics provided.
PHP JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
global-admin
tests/phpunit
.codeclimate.yml
.editorconfig
.gitattributes
.gitignore
.travis.yml
README.md
codesniffer.ruleset.xml
composer.json
deploy.sh
global-admin.php
gulpfile.js
license.txt
package.json
phpunit.xml
readme.txt

README.md

Build Status Code Climate Test Coverage Latest Stable Version License

Global Admin

Introduces a global admin panel in WordPress. Requires WP Network Roles. Works best with WP Multi Network.

While WordPress brings along the possibility to have multiple networks, there's no UI to manage them. The WP Multi Network plugin does a great job in exposing a UI to the user, however its default setup needs to be adjusted in most cases since it exposes the network management UI to all super admins.

Therefore this plugin is built on top of WP Multi Network. It does not have the plugin as a dependency, but won't make a lot of sense unless. The plugin integrates deeply into WordPress Core to offer a new kind of backend, the Global Administration panel, which follows similar concepts like the Network Administration and User Administration panels. Unfortunately some quite hacky stuff is required to be able to generate this additional backend from a plugin, but that's the only way to make it work unless it's part of WordPress Core.

What is required for this plugin though, is the plugin WP Network Roles which implements a real network-based role system. The Global Admin plugin is built on top of that to implement a similar role system globally.

The plugin also supports WP User Signups properly.

This is a very early proof-of-concept, a rather experimental approach to investigate possibilities for an actual Global Administration panel in the future. Please do not use it on a production site.

Feel free to install it on your development environment - I'd suggest to add its own dedicated one since, especially in these very early stages, the plugin might mess up your environment. Contributions, ideas, feedback all welcome! Be aware that some concepts used in this plugin might be completely thrown overboard at some point. No backwards compatibility here at the moment. There is a Google document for discussion and an overview of what exactly this plugin can do / is planned to do.

Concept

For an introduction about some of the concepts of the plugin, please read the wiki.

Compatibility

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 self_admin_url() or is_blog_admin() will not take the global administration panel into account). This Trac ticket aims to solve it.

Installation and Setup

You can download the plugin from GitHub. Just clone the master branch or download it as ZIP file. Note that the plugin requires WordPress 4.6-beta3 or higher. When using the plugin with WP Multi Network, please use the very latest version, at least at this commit.

Note that the plugin will initially hide the Networks UI of WP Multi Network. That is because this UI should only be available in the global administration panel. To enable it, define a constant WP_ALLOW_MULTINETWORK in your wp-config.php and set it to true. This will enable a new "Global Setup" menu item in the network admin. Follow the instructions to set up the global admin panel.