bp_exists

The BuddyPress bp exists function.

Description

(boolean) bp_exists( (string) $component_name ); 

Returns (boolean)

Parameters (1)

0. $component_name (string)
The component name.

Usage

  1. if ( !function_exists( 'bp_exists' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/1.7.php'; 
  3.  
  4. // The component name. 
  5. $component_name = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_exists($component_name); 
  9.  

Defined (1)

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

/bp-core/deprecated/1.7.php  
  1. function bp_exists( $component_name ) { 
  2. _deprecated_function( __FUNCTION__, '1.7' ); 
  3. if ( function_exists( $component_name . '_install' ) ) 
  4. return true; 
  5.  
  6. return false;