bp_core_get_packaged_component_ids

Returns an array of core component IDs.

Description

(array) bp_core_get_packaged_component_ids(); 

Returns (array)


Usage

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

Defined (1)

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

/bp-core/bp-core-functions.php  
  1. function bp_core_get_packaged_component_ids() { 
  2. $components = array( 
  3. 'activity',  
  4. 'members',  
  5. 'groups',  
  6. 'blogs',  
  7. 'xprofile',  
  8. 'friends',  
  9. 'messages',  
  10. 'settings',  
  11. 'notifications',  
  12. ); 
  13.  
  14. // Only add legacy forums if it is enabled 
  15. // prevents conflicts with bbPress, which also uses the same 'forums' id. 
  16. if ( class_exists( 'BP_Forums_Component' ) ) { 
  17. $components[] = 'forums'; 
  18.  
  19. return $components;