bbp_get_default_role

Is this forum available to all users on all sites in this installation?.

Description

(string) bbp_get_default_role( (string) $default = 'bbp_participant' ); 

Returns (string)

The default forums user role

Parameters (1)

0. $default — Optional. (string) => 'bbp_participant'
String Optional. Default value empty

Usage

  1. if ( !function_exists( 'bbp_get_default_role' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/options.php'; 
  3.  
  4. // string Optional. Default value empty 
  5. $default = 'bbp_participant'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_get_default_role($default); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/core/options.php  
  1. function bbp_get_default_role( $default = 'bbp_participant' ) { 
  2. return apply_filters( 'bbp_get_default_role', get_option( '_bbp_default_role', $default ) );