Clanbite Social Kit

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

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

public

Class: Kernowdev\ClanbiteSocialKit\Groups\Group_Extension

Parameters

$post_id (int) Required

Group post ID.

$post (\WP_Post) Required

Group post object.

$update (bool) Required

Whether this is an update of an existing post.

Returns

void

Defined in inc/Groups/Group_Extension.php