bp_add_roles

Adds BuddyPress-specific user roles.

Description

bp_add_roles(); 

This is called on plugin activation.


Usage

  1. if ( !function_exists( 'bp_add_roles' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-caps.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_add_roles(); 
  7.  

Defined (1)

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

/bp-core/bp-core-caps.php  
  1. function bp_add_roles() { 
  2. _doing_it_wrong( 'bp_add_roles', __( 'Special community roles no longer exist. Use mapped capabilities instead', buddypress ), '1.7' );