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.

Last edited July 23, 2018

Leave a Reply