bp_get_groups_group_type_base()
Get the group type base slug.
Description Description
The base slug is the string used as the base prefix when generating group type directory URLs. For example, in example.com/groups/type/foo/, ‘foo’ is the group type and ‘type’ is the base slug.
Return Return
(string)
Source Source
File: bp-groups/bp-groups-template.php
function bp_get_groups_group_type_base() {
/**
* Filters the group type URL base.
*
* @since 2.7.0
*
* @param string $base
*/
return apply_filters( 'bp_groups_group_type_base', _x( 'type', 'group type URL base', 'buddypress' ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |