Clanbite Profile sub-pages and groups
apply_filters( 'clanbite_team_subpages', array<string, array<string, mixed>> $registry )Filters the registered profile sub-pages (tabs) for one context.
The hook name depends on the context: clanbite_player_subpages, clanbite_team_subpages or clanbite_group_subpages (extensions can add contexts through clanbite_profile_subpage_registry_map). Prefer clanbite_register_profile_subpage() and its player/team/group wrappers for adding a tab.
Filter PHP
Parameters
$registry(array<string, array<string, mixed>>)Registered sub-pages keyed by slug. Each entry has
label,template_id,default_blocks,capabilityandposition.
Example
add_filter( 'clanbite_team_subpages', function ( $registry ) {
// Change $registry here.
return $registry;
}, 10, 1 );Defined in inc/profile-subpages.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |