Skip to content

Commit

Permalink
Ensure that group selector includes hidden groups.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Nov 10, 2017
1 parent 0f7e237 commit 3d526af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/hooks-buddypress-group.php
Expand Up @@ -581,6 +581,7 @@ function cacsp_paper_group_selector( $paper_id ) {
$user_groups = groups_get_groups( array(
'user_id' => bp_loggedin_user_id(),
'type' => 'alphabetical',
'show_hidden' => true,
) );
$user_group_ids = array_map( 'intval', wp_list_pluck( $user_groups['groups'], 'id' ) );

Expand Down

0 comments on commit 3d526af

Please sign in to comment.