Clanbite Points Since 1.4.0

clanbite_points_revoke( string $ref, int $user_id = 0 ): int

Take 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) Required

Reference passed as points_ref when the points were awarded.

$user_id (int) Optional

Only 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

VersionDescription
1.4.0Introduced.