clanbite_points_award( int $user_id, string $action_key, array $context = array() ): voidAward points for a registered action slug (subject: user ID).
Uses configured point types and rules; respects per-period caps and ledger history.
Namespace: Kernowdev\ClanbitePoints
Parameters
$user_id(int) RequiredRecipient user ID.
$action_key(string) RequiredAction slug (e.g.
login,social_post_created).$context(array<string,mixed>) OptionalOptional context for
clanbite_points_awarded. Addpoints_ref(a short string such assk_post:34) to letclanbite_points_revoke()take the points back later; the same reference only earns once while its award stands.Default:
array()
Returns
void
Defined in inc/functions.php
Changelog
| Version | Description |
|---|---|
| 1.4.0 | Updated. |