Title: Update Role
Last modified: March 9, 2019

---

# Update Role

 *  [chris256](https://wordpress.org/support/users/chris256/)
 * (@chris256)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/update-role/)
 * Hello,
    First of all, i would like to congratulate you for your amazing plugin.
   It is a big offer to the wordpress community. So, I have created a custom template,
   and i want to change the role of my users when they click a button in the website
   and gain access to new content. To do that i want to change-update or whatever
   their roles with a new role that i have created. I have tried set_role(), update_role()
   and other similar functions but with no success.
 * When i use the following:
 *  um_fetch_user( get_current_user_id() );
    $member_role = um_user(‘role’);
 * i am able to retrieve the current user’s id and the role but i can’t seem to 
   find a way to set the new custom role that i want to assign to him.
 * Could you please give me some directions on how to resolve this issue?
 * Thank you in advance.

The topic ‘Update Role’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

## Tags

 * [set_role](https://wordpress.org/support/topic-tag/set_role/)

 * 0 replies
 * 1 participant
 * Last reply from: [chris256](https://wordpress.org/support/users/chris256/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/update-role/)
 * Status: not resolved