Clanbite Points Points Since 1.3.0

apply_filters( 'clanbite_points_award_message_vars', array<string, scalar> $vars, object $row )

Filters the placeholder values used to build an award's popup wording.

Filter PHP

Parameters

$vars (array<string, scalar>)

amount, points (the point type's name) and action (readable action name).

$row (object)

The ledger row (id, points_type_key, action_key, amount, created_gmt).

Example

add_filter( 'clanbite_points_award_message_vars', function ( $vars, $row ) {
	// Change $vars here.
	return $vars;
}, 10, 2 );

Defined in inc/Points/Earned_Popup.php

Changelog

VersionDescription
1.3.0Introduced.