Warning: This function has been deprecated. Not used anymore instead.

bp_get_group_is_public( object|bool $group = false )

Return whether the current group in the loop is public.


Description Description

No longer used in BuddyPress.


Parameters Parameters

$group

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

Default value: false


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: bp-core/deprecated/6.0.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 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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.