Clanbite Points Since 1.1.0

count_since_gmt( int $user_id, string $points_type_key, string $action_key, string $since_gmt ): int

Number of times an action was rewarded for a user/type since a GMT datetime (inclusive).

Counts ledger rows, not points, so it measures how often the reward was earned.

public static

Class: Kernowdev\ClanbitePoints\Points\Ledger

Parameters

$user_id (int) Required

User ID.

$points_type_key (string) Required

Type key.

$action_key (string) Required

Action key.

$since_gmt (string) Required

Y-m-d H:i:s UTC.

Returns

int

Defined in inc/Points/Ledger.php

Changelog

VersionDescription
1.1.0Introduced.