Clanbite Points Points Since 1.3.0

apply_filters( 'clanbite_points_recent_awards', array<int, array{id: int, action_key: string, points_type_key: string, amount: int, created_gmt: string, message: string}> $awards, int $user_id )

Filters the awards returned to the browser (oldest first), for example to hide some actions from the popup.

Filter PHP

Parameters

$awards (array<int, array{id: int, action_key: string, points_type_key: string, amount: int, created_gmt: string, message: string}>)

Awards with their wording.

$user_id (int)

Member.

Example

add_filter( 'clanbite_points_recent_awards', function ( $awards, $user_id ) {
	// Change $awards here.
	return $awards;
}, 10, 2 );

Defined in inc/Points/Earned_Popup.php

Changelog

VersionDescription
1.3.0Introduced.