bp_get_profile_group_name()
Return the XProfile group name.
Description
Return
(string)
Source
File: bp-xprofile/bp-xprofile-template.php
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
| 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.