WP Network Roles
Implements network-wide user roles in WordPress.
by Felix Arntz · github.com/felixarntz/wp-network-roles · website
★ 9stars
54composer installs
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/felixarntz/wp-network-roles/archive/refs/heads/master.zipAlso on Packagist as felixarntz/wp-network-roles:
composer require felixarntz/wp-network-rolesFrom the readme
WP Network Roles
Implements network-wide user roles in WordPress.
What it does
introduces classes WPNetworkRole and WPNetworkRoles for managing network-wide roles
introduces internal class WPNRUserWithNetworkRoles that stores network roles and capabilities for a user
introduces relationships between users and networks
allows to query users for specific network roles or whether they are part of a network
uses user meta to store network-wide roles and capabilities, in a similar fashion like WordPress core stores site roles and capabilities)
introduces two initial network roles "administrator" (similar to Super Admin for a network) and "member" (no capabilities, simply a member of a network)
synchronizes and migrates super admins to the network role "administrator"
adds network relationships to existing users by assigning them the "member" network role
includes wp network-role and wp network-cap commands for WP-CLI
supports the WP Multi Network plugin
How to install
The plugin can either be installed as a network-wide regular plugin or alternatively as a must-use plugin.
Recommendations
Do not set any of the following global variables:
$superadmins (WordPress co
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 1.0.0-beta.1 | Feb 21, 2018 | — | — |