- fixed redirect after registration;

- removed empty set_roles() function;
- added function for checking AMP;
This commit is contained in:
nikitasinelnikov
2020-10-02 15:48:59 +03:00
parent 042be3351a
commit e26a6a33ab
5 changed files with 34 additions and 14 deletions
@@ -345,18 +345,6 @@ if ( ! class_exists( 'um\core\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
*