Note: This is to inform you that these snippets are around 2 years old so these might not work for everyone.

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

11