Clanbite

clanbite_register_team_subpage( string $slug, array $args = array() ): void

Register a team profile subpage (tab) for the front-end team profile.

Parameters

$slug (string) Required

Unique slug (used in the URL).

$args (array) Optional

Default: array()

  • $label string Human-readable label.
  • $template_id string FSE template identifier (defaults to "clanbite-team-{$slug}").
  • $default_blocks string Optional default block markup.
  • $capability string Capability required to view (default "read").
  • $position int Sort order (lower first).

Returns

void

Defined in inc/extensions/teams/functions.php