bp_get_group_is_public( object|bool $group = false )

Return whether the current group in the loop is public.

Description

No longer used in BuddyPress.

Parameters

$group

(Optional) Group object. Default: current group in loop.

Default value: false

Return

(mixed)

Source

File: bp-groups/bp-groups-template.php

	function bp_get_group_is_public( $group = false ) {
		global $groups_template;

		if ( empty( $group ) ) {
			$group =& $groups_template->group;
		}

		/**
		 * Filters whether the current group in the loop is public.
		 *
		 * @since BuddyPress 2.5.0 Added the `$group` parameter.
		 *
		 * @param bool   $public True if the group is public.
		 * @param object $group Group object.
		 */
		return apply_filters( 'bp_get_group_is_public', $group->is_public, $group );
	}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.