# Teams::user_is_team_admin_on_frontend()

Whether the user is a team admin on the front end.

```php
user_is_team_admin_on_frontend( int $team_id, ?int $user_id = null ): bool
```

## Parameters

- `$team_id` (int) Team post ID.
- `$user_id` (int|null) User ID or null for current user.

## Return

`bool`
