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
Return Return
(string)
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' );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Not used anymore. |
| 1.0.0 | Introduced. |