Clanbite Notifications

do_action( 'clanbite_notification_poll_tick', int $user_id, string $since, int $last_id )

Action fired during each poll iteration.

Can be used to check for other real-time events.

Action PHP

Parameters

$user_id (int)

User ID.

$since (string)

Since timestamp.

$last_id (int)

Last notification ID.

Example

add_action( 'clanbite_notification_poll_tick', function ( $user_id, $since, $last_id ) {
	// Run your code.
}, 10, 3 );

Defined in inc/extensions/notifications/class-notification-rest-controller.php