ensure_author_is_admin_on_create( int $post_id, WP_Post $post, bool $update ): voidPromote the author of a newly inserted group to admin when it has none.
public
Class: Kernowdev\ClanbiteSocialKit\Groups\Group_Extension
Parameters
$post_id(int) RequiredGroup post ID.
$post(\WP_Post) RequiredGroup post object.
$update(bool) RequiredWhether this is an update of an existing post.
Returns
void
Defined in inc/Groups/Group_Extension.php