Clanbite

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

Register a group profile subpage (tab) for front-end group profiles.

Call on init (priority ≤ 20) so subpages exist before block rendering.

Parameters

$slug (string) Required

Unique slug (URL segment after the group base URL).

$args (array) Optional

Optional. Subpage arguments.

Default: array()

  • $label string Human-readable nav label.
  • $template_id string FSE template id (default clanbite-group-{slug}).
  • $default_blocks string Optional default block markup for the template.
  • $capability string Capability required to see the tab in nav (default read).
  • $position int Sort order (lower first).

Returns

void

Defined in inc/groups/functions.php