mycred_badge_user_value
Description
This filter allows you to adjust the value that badges add-on saves when a user earns a new badge / badge level. By default, the add-on saves the badges level ID but if you do not use levels you can use this to store other types of data as long as it is a string or integer value.
Available since version 1.2
Parameters
Param | Type | Required | Description |
---|---|---|---|
$new_level |
int | Yes | The new level ID a user earned. Remember that Level IDs start from ZERO and not from 1. |
$user_id |
int | No | The users WordPress id. |
$badge_id |
int | No | The badges post object ID. |
Used By
Package | Prio. | Description |
---|---|---|
Not used by any built-in package. |
Examples
No example found.