bp_get_moderator_role

The moderator role for BuddyPress users.

Description

bp_get_moderator_role(); 

Usage

  1. if ( !function_exists( 'bp_get_moderator_role' ) ) { 
  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_get_moderator_role(); 
  7.  

Defined (1)

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

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