bp_get_profile_group_name()
Return the XProfile group name.
Description Description
Return Return
(string)
Source 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 1.0.0
* @since 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 |
|---|---|
| 1.0.0 | Introduced. |