BuddyPress Profile Actions

Description

This hook allows you to reward your users for most profile related events in BuddyPress, ranging from profile updates to cover photo uploads.

Available since version 1.0

Known Issues

Certain instances requires specific BuddyPress components to be enabled. For example, you can not reward new friendships if the Friend Connection component in BuddyPress is not enabled.

Setup

Set a point value other than zero for all the instances you want to reward. Make sure all these instances also have a log entry template and that a hook limit is set (if needed).

Supported Instances

Instance Reference Description
new_profile_update Give or take points from users for profile updates.
deleted_profile_update Give or take points from users for deleting a profile update.
upload_avatar Give or take points from users for uploading an avatar.
upload_cover Give or take points from users for uploading a cover image.
new_friendship Give or take points from users for gaining a new friend.
ended_friendship Give or take points from users for losing a friend.
new_comment Give or take points from users for a new profile comment.
comment_deletion Give or take points from users for deleting a profile comment.
fave_activity Give or take points from users for marking an update as "Favorite".
unfave_activity Give or take points from users for removing an update that was marked as "Favorite".
sending_gift Give or take points from users for sending gifts. (Requires BuddyPress Gifts plugin)

Friendships

If you select to deduct points from a user for gaining a new friend, the hook will hide the “Add Friend” button in BuddyPress if the user can not afford to pay the amount you set. You can use this to charge users for making new friendships on your website.