clanbite_profile_subpages_visible_for_nav( string $context, int $object_id, array $subpages ): array<string, array<string, mixed>>Subpages the current user may see in a profile nav (capability + clanbite_profile_subpage_nav_visible).
For player context, tabs default to the profile owner only; use clanbite_profile_subpage_nav_visible to expose a tab to other visitors.
Extensions should use this for custom navigation UIs; core blocks call it from render callbacks.
Parameters
$context(string) RequiredContext slug (
player,team,group, …).$object_id(int) RequiredSubject id (user id, team post id, group id).
$subpages(array<string, array<string, mixed>>) RequiredTypically
clanbite_get_profile_subpages()for$context.
Returns
array<string, array<string, mixed>>
Defined in inc/profile-subpages.php