Groups created with groups_create_group() not showing in directory / wp-admin
We are using groups_create_group() to programmatically create groups.
They show in the total group count, and can be accessed via their slug. They also appear to be ‘fully complete’ in the bp_groups table.
<em>However they don’t show in the group directory, and they don’t show in wp-admin</em> (although the pagination / total count suggests they are there, but when paging we just see empty tables).
Sample call we are using:
$args = array(
‘name’ => ‘my group name’,
‘description’ => ‘my group description’,
‘status’ => ‘private’,
‘slug’ => slugify( ‘my group name’ ),
‘enable_forum’ => 0,
‘date_created’ => bp_core_current_time()
$new_id = groups_create_group( $args );
You must be logged in to reply to this topic.