do_action( 'clanbite_points_awarded', int $user_id, string $points_type_key, string $action_key, int $amount, int $ledger_id, array<string, mixed> $context )Fires after points were written for a core/button click reward.
Action PHP
Parameters
$user_id(int)Recipient.
$points_type_key(string)Points type key.
$action_key(string)Action slug (
button_click_{reward_key}).$amount(int)Points granted this click.
$ledger_id(int)Ledger row ID.
$context(array<string, mixed>)Source context for click rewards.
Example
add_action( 'clanbite_points_awarded', function ( $user_id, $points_type_key, $action_key, $amount, $ledger_id, $context ) {
// Run your code.
}, 10, 6 );Also fired in
inc/Points/Engine.php
Defined in inc/Points/Button_Click_Rewards.php