bbp_add_roles

Adds bbPress-specific user roles.

Description

bbp_add_roles(); 

Usage

  1. if ( !function_exists( 'bbp_add_roles' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/capabilities.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_add_roles(); 
  7.  

Defined (1)

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

/includes/core/capabilities.php  
  1. function bbp_add_roles() { 
  2. _doing_it_wrong( 'bbp_add_roles', __( 'Editable forum roles no longer exist.', bbpress ), '2.2' );