bp_member_type_default_on_registration( string $default = '' )
Default member type on registration.
Description
Parameters
- $default
-
(Optional) blank. Fallback value if not found in the database. Default: blank.
Default value: ''
Return
(string) member type if member type set, otherwise blank.
Source
File: bp-core/bp-core-options.php
function bp_member_type_default_on_registration( $default = '' ) {
/**
* Filters whether default profile type set on registration.
*
* @since BuddyBoss 1.0.0
*
* @param string $value Whether default profile type set on registration.
*/
return apply_filters( 'bp_member_type_default_on_registration', bp_get_option( 'bp-member-type-default-on-registration', $default ) );
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 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.