Clanbite Points JavaScript

wp.hooks.doAction( 'clanbite.notifications.received', Array notifications )

Fires Clanbite's clanbite.notifications.received with an empty list after a click award, for listeners that only react to that action. Defined by Clanbite core; see its hook reference.

Action JavaScript

Parameters

$notifications (Array)

Always empty here (no notification object is created client-side).

Example

wp.hooks.addAction( 'clanbite.notifications.received', 'my-plugin/handler', function ( notifications ) {
} );

Defined in inc/Points/button-click-rewards.js