Skip to content

Instantly share code, notes, and snippets.

@ray-ang
ray-ang / multiple-roles-per-user.php
Last active December 5, 2021 00:18 — forked from nikolov-tmw/multiple-roles-per-user.php
Multiple roles per user WordPress plugin.
<?php
/**
* Plugin Name: Multiple Roles per User
* Description: Allows anyone who can edit users to set multiple roles per user. In a default WordPress environment that wouldn't have much of an effect, since the user would have the privileges of the top-privileged role that you assign to him. But if you have custom roles with custom privileges, this might be helpful.
* Version: 1
* Author: nikolov.tmw
* Author URI: http://paiyakdev.com/
* Contributor: Raymund John Ang ([email protected])
* License: GPL2
*/