bp_get_current_group_description()

Returns the description of the current group.

Description

Return

(string) The description of the current group, if there is one.

Source

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

7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
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 BuddyPress 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 BuddyPress 2.1.0
     *
     * @param string $desc Description of the current group.
     */
    return apply_filters( 'bp_get_current_group_description', $desc );
}

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.