Clanbite Points Since 1.4.0
clanbite_points_revoke( string $ref, int $user_id = 0 ): intTake back the points a reference earned (a deleted post, a removed reaction).
Global alias of \Kernowdev\ClanbitePoints\clanbite_points_revoke() so themes and other plugins can use the documented name behind the usual function_exists() check.
Parameters
$ref(string) RequiredReference passed as
points_refwhen the points were awarded.$user_id(int) OptionalOnly take back this member's points (0 = whoever earned them).
Default:
0
Returns
int Points taken back in total.
Defined in inc/functions-global.php
Changelog
| Version | Description |
|---|---|
| 1.4.0 | Introduced. |