This action hook fires each time a user has been promoted to a rank that has a higher minimum point requirement set then their previous rank. For demotions, please see the mycred_user_got_demoted action.
Param | Type | Required | Description |
---|---|---|---|
$user_id |
int | No | The ID of the user that is affected by this promotion. |
$rank_id |
int | No | The rank post ID that the user was promoted to. |
$request |
obj | No |
The database requests that caused this action to fire. (Added in 1.7). Available details:
|
Package | Prio. | Description |
---|---|---|
Not used by any built-in package. |
Example 1: When a user reaches the rank with the ID 123, we give them a 10 point bonus.