Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffreyvr/members-multisite-user-roles-sync
This is a simple Multisite add-on for Justin Tadlock's Members plugin, which synchronizes user (multiple) roles on all network sites.
https://github.com/jeffreyvr/members-multisite-user-roles-sync
Last synced: about 1 month ago
JSON representation
This is a simple Multisite add-on for Justin Tadlock's Members plugin, which synchronizes user (multiple) roles on all network sites.
- Host: GitHub
- URL: https://github.com/jeffreyvr/members-multisite-user-roles-sync
- Owner: jeffreyvr
- Created: 2016-01-15T11:05:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-11T16:11:35.000Z (almost 9 years ago)
- Last Synced: 2024-05-02T02:06:22.330Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
=== Members Multisite User Roles Sync ===
Contributors: jeffreyvr, jekrikken
Tags: multisite, members, roles, synchronize
Requires at least: 4.3
Tested up to: 4.4.1
Stable tag: 0.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.htmlThis is a simple Multisite add-on for Justin Tadlock's Members plugin, which synchronizes user (multiple) roles on all network sites.
== Description ==
This is a simple Multisite add-on for Justin Tadlock's Members plugin, which synchronizes user (multiple) roles on all network sites.
== Installation ==
By installing this plugin we assume you use WordPress Multisite and have Justin Tadlock's Members plugin installed.
1. Upload the plugin files to the `/wp-content/plugins/members-multisite-user-roles-sync` directory, or install the plugin through the WordPress Multisite plugins screen directly.
2. Network activate the plugin through the Multisite 'Plugins' screen in WordPress== Frequently Asked Questions ==
= Where is the settings page for this plugin? =
There is none. You simply activate it and it will work right away.
= Is there a function to add a role to a user programmatically? =
Yes, there is. See this example code:
`add_role(
$user_id, // user you want to add role to
$roles = array(), // input array is needed
$all_sites = TRUE
);
?>`== Links ==
* [Members](https://nl.wordpress.org/plugins/members/)
== Changelog ==
= 0.0.1 =
* Init release.= 0.0.2 =
* Fix: User roles were not syncing to other sites when removing roles. (jeffreylasut)
* Enhancement: Make sure function get_editable_roles exists.