Change Role based on Balance

Home / Code Snippets / Change Role based on Balance

Change a users WordPress role based on their point balance.

The above code goes into your theme's function.php file.

Last edited October 20, 2014

  1. This is very great code. But is it compatible with 1.6.2? When a subscriber got more than 100 points it’s role becomes administrator eveytime. Can you check it please? And is it also functioning reverse – lower role when user lost points?

  2. I have implemented this code and it is working when the user moves up a level but not when the user needs to go back down a level. Is there a way that this can happen?

Leave a Reply