Clanbite

user_can_manage_team_on_frontend( int $team_id, ?int $user_id = null ): bool

Whether the user may open the front-end manage screen (admin or editor, not banned).

public

Class: Kernowdev\Clanbite\Extensions\Teams

Parameters

$team_id (int) Required

Team post ID.

$user_id (int|null) Optional

User ID or null for current user.

Default: null

Returns

bool

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