Hooks – Badges

Below are the available Hooks within Badges. These can be used to customize the functionality for Badges.

==========

/**
* Fires after a badge has been successfully added to a user
*
* @param integer $user_id – User Id
* @param integer $badge_id – ID of the badge added.
*/
do_action( ‘wishlistbadge_add_user_badge’, $user_id, $badge_id );

/**
* Fires after a badge has been successfully removed from a user
*
* @param integer $user_id – User Id
* @param integer $badge_id – ID of the badge removed.
*/
do_action( ‘wishlistbadge_remove_user_badge’, $user_id, $badge_id );

More info on Hooks can be found in the following articles:

Hooks – Courses
Hooks – Quizzes
Hooks – Points

Back to Top