Automatic Points

Estimated reading: 4 minutes 2355 views

Automatic Points

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 log 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.

Hook Limits

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”.

Special Hooks

Besides WordPress or third-party related hooks, myCred also offers a few custom ones:

Points for Clicking on Links

This hook comes with the mycred_link custom shortcode. Using this shortcode will generate links that when a  logged in user clicks on it, they can receive points.

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.

Points for Referrals

This is a very basic affiliate hook that allows your users to earn points for referring visitors and / or signups. This hook uses the mycred_affiliate_link and the mycred_affiliate_id shortcodes. You can read more about how to install and setup this hook here.