bp_get_profile_group_name()

Return the XProfile group name.

Description

Return

(string)

Source

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

1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
function bp_get_profile_group_name() {
 
    // Check action variable.
    $group_id = bp_action_variable( 1 );
    if ( empty( $group_id ) || ! is_numeric( $group_id ) ) {
        $group_id = 1;
    }
 
    // Check for cached group.
    $group = new BP_XProfile_Group( $group_id );
 
    /**
     * Filters the profile group name.
     *
     * @since BuddyPress 1.0.0
     * @since BuddyPress 2.6.0 Added the `$group_id` parameter
     *
     * @param string $name     Name of the profile group.
     * @param int    $group_id ID of the profile group.
     */
    return apply_filters( 'bp_get_profile_group_name', $group->name, $group_id );
}

Changelog

Changelog
Version Description
BuddyPress 1.0.0 Introduced.

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.