Hooks
Realtime
4 hooks fired by Realtime: 1 filters and 3 actions across 4 call sites.
4 hooks fired by Realtime: 1 filters and 3 actions across 4 call sites. 2 of the 4 call sites are described by a docblock, at the call or on the constant that names the hook; the rest are listed with their signature and call sites only. Paths are relative to the plugin directory.
xpac_realtime_init
Action · 1 argument · 1 call site
do_action( self::ACTION_INIT, $this )Fired from:
packages/Realtime/Bootstrap.php:63
xpac_realtime_presence_member
Filter · 4 arguments · 1 call site
Filter the public description of a member on a presence channel.
apply_filters( 'xpac_realtime_presence_member', $member, $userId, $channel->namespace(), $channel->params() )$member(array<string, mixed>) — Name and avatar by default.$userId(int) — The joining user.$namespace(string) — Channel namespace.$params(array<string, mixed>) — Resolved channel params.
Fired from:
packages/Realtime/Core/Rest/AuthController.php:287
xpac_realtime_prime_authorization
Action · 3 arguments · 1 call site
Prime authorisation for many channels of one namespace at once.
do_action( 'xpac_realtime_prime_authorization', $namespace, $paramSets, $userId )$namespace(string) — Channel namespace.$paramSets(array<int, array<string, mixed>>) — One entry per channel asked for.$userId(int) — 0 for a logged-out visitor.
Fired from:
packages/Realtime/Core/Rest/AuthController.php:193
xpac_realtime_register_channels
Action · 1 argument · 1 call site
do_action( self::ACTION_REGISTER_CHANNELS, $this->registry )Fired from:
packages/Realtime/Bootstrap.php:50