bp_get_current_group_description()
Returns the description of the current group.
Description Description
Return Return
(string) The description of the current group, if there is one.
Source Source
File: bp-groups/bp-groups-template.php
function bp_get_current_group_description() {
$current_group = groups_get_current_group();
$current_group_desc = isset( $current_group->description ) ? $current_group->description : '';
/**
* Filters the description of the current group.
*
* This filter is used to apply extra filters related to formatting.
*
* @since 1.0.0
*
* @param string $current_group_desc Description of the current group.
*/
$desc = apply_filters( 'bp_get_group_description', $current_group_desc );
/**
* Filters the description of the current group.
*
* @since 2.1.0
*
* @param string $desc Description of the current group.
*/
return apply_filters( 'bp_get_current_group_description', $desc );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |