bp_get_members_member_type_base()
Get the profile type base slug.
Description
The base slug is the string used as the base prefix when generating profile type directory URLs. For example, in example.com/members/type/foo/, ‘foo’ is the profile type and ‘type’ is the base slug.
Return
(string)
Source
File: bp-members/bp-members-template.php
function bp_get_members_member_type_base() {
/**
* Filters the profile type URL base.
*
* @since BuddyPress 2.3.0
*
* @param string $base
* @todo if this is changed what will it break? Should we allow this?
*/
return apply_filters( 'bp_members_member_type_base', _x( 'type', 'profile type URL base', 'buddyboss' ) );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.5.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.