Clanbite Points Since 1.3.0

rest_recent_awards( WP_REST_Request $request ): \WP_REST_Response

REST: the signed-in member's newest awards after a ledger id, with ready-to-show wording.

public static

Class: Kernowdev\ClanbitePoints\Points\Earned_Popup

Parameters

$request (\WP_REST_Request) Required

Request (after: the last ledger id the browser has handled).

Returns

\WP_REST_Response latest_id, awards (oldest first) and summaries (one per point type, for combined popups).

Defined in inc/Points/Earned_Popup.php

Changelog

VersionDescription
1.3.0Introduced.