Clanbite

clanbite_register_profile_subpage( string $context, string $slug, array $args = array() ): void

Register a subpage tab for a profile context.

Parameters

$context (string) Required

player, team, group, or an extension context from the registry map.

$slug (string) Required

URL segment slug.

$args (array) Optional

Default: array()

  • $label string Nav label.
  • $template_id string FSE template id (default {prefix}-{slug}).
  • $default_blocks string Optional default block markup.
  • $capability string Capability for current_user_can() (default read).
  • $position int Sort order (lower first).

Returns

void

Defined in inc/profile-subpages.php