This filter allows you to exclude users from using myCRED via script. This filter is part of the exclude_user() method in the myCRED_Settings class and is used extensively in myCRED. Returning true will stop the user in question from gaining points or using myCRED features.
Should return TRUE if user is to be excluded or FALSE if not.
The ID of the user in question.
The myCRED_Settings class object being used.
|Not used by any built-in package.|
Example 1: Exclude users with the subscriber role in WordPress from using myCRED.
Example 2: Example 2: Exclude users with the Paid Membership Pro level of ``Gold`` from using myCRED.