Clanbite Points

clanbite_points_award( int $user_id, string $action_key, array $context = array() ): void

Award points for a registered action slug (subject: user ID).

Uses configured point types and rules; respects per-period caps and ledger history.

Global alias of \Kernowdev\ClanbitePoints\clanbite_points_award() so themes and other plugins can use the documented name behind the usual function_exists() check.

Parameters

$user_id (int) Required

Recipient user ID.

$action_key (string) Required

Action slug (e.g. login, social_post_created).

$context (array<string,mixed>) Optional

Optional context for clanbite_points_awarded.

Default: array()

Returns

void

Defined in inc/functions-global.php