bp_get_community_caps

Return community capabilities.

Description

(array) bp_get_community_caps(); 

Returns (array)

Community capabilities.


Usage

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

Defined (1)

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

/bp-core/bp-core-caps.php  
  1. function bp_get_community_caps() { 
  2.  
  3. // Forum meta caps. 
  4. $caps = array(); 
  5.  
  6. /** 
  7. * Filters community capabilities. 
  8. * @since 1.6.0 
  9. * @param array $caps Array of capabilities to add. Empty by default. 
  10. */