
Hooks (Rules)
Core feature
Hooks are the conditional triggers that award or deduct points from a user’s balance whenever a specific action is performed on your site. Every time a user does something you’ve configured, logs in, publishes a post, completes a purchase, the relevant hook triggers, updates the balance, and writes an entry to the log.
Each hook requires two things before it will run: a point value (positive to award, negative to deduct) and a log template describing what gets recorded. Without a log template, the hook may not run correctly, and any limit you’ve set will not work.
For events that can occur more than once, commenting, publishing, and visiting, every hook includes an optional limit. You can enforce a daily, weekly, monthly, or total cap.
You can view the full list of available hooks and their setup guides in the Hooks category of the codex.
Developers looking to register custom hooks can use the mycred_setup_hooks filter; see the Hook API for reference.