# clanbite_profile_subpages_visible_for_nav()

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.

```php
clanbite_profile_subpages_visible_for_nav( string $context, int $object_id, array $subpages ): array
```

## Parameters

- `$context` (string) Context slug (`player`, `team`, `group`, …).
- `$object_id` (int) Subject id (user id, team post id, group id).
- `$subpages` (array<string, array<string, mixed>>) Typically `clanbite_get_profile_subpages()` for `$context`.

## Return

`array<string, array<string, mixed>>`
