Exclude Subscribers

Home / Code Snippets / Exclude Subscribers

Exclude users who have the “Subscriber” role on your website from using myCRED. Once their role changes, they will gain access to myCRED.

Add this code snippet to your functions.php file. You can change the capability to check for to exclude other roles.

Leave a Reply

Spin to win points 💰
Kindly get back to your previous orientation view... your wheel is rolling there...

Do you really like this awesome addon and wanna use on your site? click here to get it now 👍
myCRED Fortune Wheel special offer unlocked!
You have a chance to win free tokens. Are you feeling lucky? Give it a spin.
* You can spin the wheel only once in a month.
* You can spin again any time by paying 500 points
* Once you pay for spin you are not able to refund it.
You must login to play mycred fortune wheel
11
Happy HolidaysGET DISCOUNT