Giving or Taking Points Automatically
One of myCRED’s core features is the ability to award or deduct points from a user for interacting with your website. The automatic point adjustments are called “Hooks”, as you have to “hook into” a particular event e.g. when users logging in to see if they should get points.
As of version 1.4, you can award multiple point types for the same event, e.g. giving users 10 points and maybe 1 token for logging in.
You can find your hook settings in your admin area on the myCRED > Hooks page. As of version 1.7, hooks are managed just like widgets in WordPress. To enable a hook, you drag it to the “Active Hooks” sidebar. To disable, you drag the hook back to the list.
Supported WordPress Events
The following WordPress related events are supported by default:
- Points for registering.
- Points for logging in.
- Points for viewing content. *
- Points for daily site visit.
- Points for publishing content.
- Points for deleting content.**
- Points for approved / trashed / spammed comments.
* Does not support AJAX loaded pages.
** Added in version 1.7
Supported Third-Party Events
Besides WordPress, myCRED also has built-in support for some of the most popular third-party plugins, like Jetpack, WooCommerce, BuddyPress, bbPress etc.
In addition, a growing number of plugins have begun adding support for myCRED from their own end. You can find all third-party plugins that myCRED supports here.
As of version 1.4, myCRED hooks have built-in support for setting limits. The limit defines the number of times a user gains points, and not the amount of points they gain. You can select to enforce a daily, weekly or monthly limit. Limits are only available for hooks where there are no built-in limit option. For example the “Points for daily visit” has a built-in daily limit so it does not have a “hook limit”.
Besides WordPress or third-party related hooks, myCRED also offers a few custom ones:
Points for Watching Videos
This custom hook allows you to give your users points for watching embedded YouTube videos. In order for this to work, you must embed your videos using the mycred_video shortcode.
Note that users can only gain points once per video.