Clanbite Teams

apply_filters( 'clanbite_team_manage_form_sections', array<string, array{title: string, priority: int, callback: callable}> $sections, int $team_id, Teams $extension )

Filter registered sections for the front-end team manage form.

Add, remove, or reorder sections. Third-party sections should use a unique string key.

Filter PHP

Parameters

$sections (array<string, array{title: string, priority: int, callback: callable}>)

Section key => config.

$team_id (int)

Team post ID.

$extension (Teams)

Teams extension instance.

Example

add_filter( 'clanbite_team_manage_form_sections', function ( $sections, $team_id, $extension ) {
	// Change $sections here.
	return $sections;
}, 10, 3 );

Defined in inc/extensions/teams/class-extension-teams.php