Clanbite

filter_profile_subpage_events_nav_visible( bool $visible, string $context, string $slug, int $object_id, array $config ): bool

Hide the shared events subpage tab when it does not apply (owner-only player calendar, per-team flag).

public

Class: Kernowdev\Clanbite\Events\Events

Parameters

$visible (bool) Required

Prior visibility.

$context (string) Required

Profile context (player, team, group, …).

$slug (string) Required

Subpage slug.

$object_id (int) Required

Subject id for the context.

$config (array) Required

Subpage configuration.

Returns

bool

Defined in inc/events/class-events.php