# clanbite_points_revoke()

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.

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

## Parameters

- `$ref` (string) Reference passed as `points_ref` when the points were awarded.
- `$user_id` (int) Only take back this member's points (0 = whoever earned them).

## Return

`int` Points taken back in total.

## Changelog

| Version | Description |
| --- | --- |
| 1.4.0 | Introduced |
