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

bp_get_group_public_status( object|bool $group = false )

Return the status of the current group in the loop.


Description Description

Either ‘Public’ or ‘Private’.


Parameters Parameters

$group

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

Default value: false


Top ↑

Return Return

(string)


Top ↑

Source Source

File: bp-core/deprecated/6.0.php

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

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

		if ( $group->is_public ) {
			return __( 'Public', 'buddypress' );
		} else {
			return __( 'Private', 'buddypress' );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Not used anymore.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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