mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Merge branch 'master' of https://github.com/ultimatemember/ultimatemember into fix/wpml_emails_templates
Conflicts: includes/um-deprecated-functions.php includes/um-short-functions.php
This commit is contained in:
@@ -141,6 +141,18 @@ if ( ! class_exists( 'Roles_Capabilities' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set roles to user (remove all previous roles)
|
||||
* make user only with $roles roles
|
||||
*
|
||||
* @param int $user_id
|
||||
* @param string|array $roles
|
||||
*/
|
||||
function set_roles( $user_id, $roles ) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get user one of UM roles if it has it
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user