Including hidden BuddyPress groups in dropdown

Out of box, BuddyPages only includes public groups for consideration when where to assign a given page. The code below will allow for including hidden groups as part of that query.

function pluginizehelp_include_hidden_groups( $args ) {
	$args['show_hidden'] = true;
	
	return $args;
}
add_filter( 'buddypages_groups_get_is_admin', 'pluginizehelp_include_hidden_groups' );
Updated Dec 12, 2022 8:57 PM