# Group_Extension::ensure_author_is_admin_on_create()

Promote the author of a newly inserted group to admin when it has none.

```php
ensure_author_is_admin_on_create( int $post_id, WP_Post $post, bool $update ): void
```

## Parameters

- `$post_id` (int) Group post ID.
- `$post` (\WP_Post) Group post object.
- `$update` (bool) Whether this is an update of an existing post.

## Return

`void`
