Clanbite Points Points Since 1.4.0

do_action( 'clanbite_points_revoked', int $user_id, string $points_type_key, string $action_key, int $amount, int $ledger_id, int $original_id, string $ref )

Fires after an award was taken back.

Action PHP

Parameters

$user_id (int)

Member who lost the points.

$points_type_key (string)

Point type.

$action_key (string)

Action that had earned them.

$amount (int)

Points taken back (positive).

$ledger_id (int)

The new negative ledger row.

$original_id (int)

The award that was reversed.

$ref (string)

Reference the award was recorded under.

Example

add_action( 'clanbite_points_revoked', function ( $user_id, $points_type_key, $action_key, $amount, $ledger_id, $original_id, $ref ) {
	// Run your code.
}, 10, 7 );

Defined in inc/Points/Engine.php

Changelog

VersionDescription
1.4.0Introduced.