Clanbite Points Points

apply_filters( 'clanbite_points_should_award', bool $proceed, int $user_id, string $action_key, array<string, mixed> $context )

Short-circuit point awarding before rules are evaluated.

Filter PHP

Parameters

$proceed (bool)

Whether to continue.

$user_id (int)

Recipient.

$action_key (string)

Sanitized action slug.

$context (array<string, mixed>)

Caller context.

Example

add_filter( 'clanbite_points_should_award', function ( $proceed, $user_id, $action_key, $context ) {
	// Change $proceed here.
	return $proceed;
}, 10, 4 );

Defined in inc/Points/Engine.php