bbp_get_default_role( string $default = 'bbp_participant' )
Get the default forums role (issued to users on their first visit to the forums) by bbp_set_current_user_default_role() and repair tools
Description Description
Parameters Parameters
- $default
-
(Optional) Default value empty
Default value: 'bbp_participant'
Return Return
(string) The default forums user role
Source Source
File: includes/core/options.php
function bbp_get_default_role( $default = 'bbp_participant' ) { // Filter & return return apply_filters( 'bbp_get_default_role', get_option( '_bbp_default_role', $default ) ); }
Changelog Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |