wp.hooks.doAction( 'clanbite.notifications.polled', {{ transport: string, reason: string, response: Object, payload: null }} detail )Fires Clanbite's clanbite.notifications.polled with a synthetic transport after points are awarded for a button click, so UI that follows the notification cadence (rank progress bars, …) refreshes now. Defined by Clanbite core; see its hook reference.
Action JavaScript
Parameters
$detail({{ transport: string, reason: string, response: Object, payload: null }})transportissynthetic;reasonisclanbite_points_click_award.
Example
wp.hooks.addAction( 'clanbite.notifications.polled', 'my-plugin/handler', function ( detail ) {
} );Defined in inc/Points/button-click-rewards.js