Title: bug
Last modified: August 31, 2016

---

# bug

 *  [onirgoc](https://wordpress.org/support/users/onirgoc/)
 * (@onirgoc)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bug-143/)
 * Hello,
 * I am using multi roles in my website and when applying a new community role it
   delete the wp roles…probably because you don’t check feww roles exist (array)
   and so it returns empty role.
 * Hope you can change this too.
 * [https://wordpress.org/plugins/ultimate-member/](https://wordpress.org/plugins/ultimate-member/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ultimate Member](https://wordpress.org/support/users/ultimatemember/)
 * (@ultimatemember)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bug-143/#post-7321965)
 * Hi,
 * Can you please provide more details on what you mean by multi roles?
 * Thanks
 *  Thread Starter [onirgoc](https://wordpress.org/support/users/onirgoc/)
 * (@onirgoc)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bug-143/#post-7321966)
 * hello,
 * easy: multi-role by example when a customer buy a certain category product my
   code assign him autoamticly a specific user role connected to the catgeory of
   the product. It means that if a user buy a product with category “A” then a product
   with category “B” he will have user role : customer, A, B.
 * But under UM you didn’t check that a user may have few roles( it’s a wordpress
   feature) and so when applying new community role you keep only the last role,
   not all of them.
 * My code is very usefull because it assign the right category to a customer depending
   on what he buy. Of course it depends on what kind of product you sell. In my 
   case I have only course and not more than 20 different categories.
 * Does it reply to your question ?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘bug’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [onirgoc](https://wordpress.org/support/users/onirgoc/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/bug-143/#post-7321966)
 * Status: not resolved