• Hello,

    Just wanted to note that when a group is made hidden then it’s not going to appear in the Organize tab or in the CSV export as the get group call is done as follows (If BP Hierarchy isn’t installed);
    $groups_list = BP_Groups_Group::get( 'alphabetical' );

    To get them into the Organize tab and CSV export the show_hidden argument is required.
    Warning: If updating BP_Groups_Group::get with an arguments array while BP Sticky Groups is installed then you’ll find your sticky groups disappear on Organize tab and CSV export. To avoid this move to the groups_get_groups method instead as it executes the groups_get_groups filter that BP Sticky Groups requires. Issue reference: https://wordpress.org/support/topic/sticky-groups-missing-when-using-bp_groups_groupget-function/
    *Also note if moving to groups_get_group you’ll need to specify -1 for per_page as the default for that method is only 20

    So the appropriate call would be;

    $groups_list = groups_get_groups(
        array(
            'type'          => 'alphabetical',
            'show_hidden'   => true,
            'per_page'      => -1
        )
    );

    Much appreciated,
    Cheers

The topic ‘Hidden Groups missing from Organizer and Export’ is closed to new replies.