Clanbite Points Points Since 1.4.0
apply_filters( 'clanbite_points_should_revoke', bool $revoke, object $row )Filters whether one award is taken back.
Filter PHP
Parameters
$revoke(bool)Whether to take the points back.
$row(object)Ledger row (
id,user_id,points_type_key,action_key,amount,ref).
Example
add_filter( 'clanbite_points_should_revoke', function ( $revoke, $row ) {
// Change $revoke here.
return $revoke;
}, 10, 2 );Defined in inc/Points/Engine.php
Changelog
| Version | Description |
|---|---|
| 1.4.0 | Introduced. |