bp_registration_options_init

Loads BP Registration Options files only if BuddyPress is present.

Description

bp_registration_options_init(); 

Usage

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

Defined (1)

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

/loader.php  
  1. function bp_registration_options_init() { 
  2.  
  3. $bp = ''; 
  4. $bbp = ''; 
  5.  
  6. // Not using bp_includes because we want to be able to be run with just bbPress as well. 
  7. if ( function_exists( 'buddypress' ) ) { 
  8. $bp = buddypress(); 
  9.  
  10. if ( function_exists( 'bbpress' ) ) { 
  11. $bbp = bbpress(); 
  12.  
  13. if ( bp_registration_should_init( $bp, $bbp ) ) { 
  14. require_once( dirname( __FILE__ ) . '/bp-registration-options.php' ); 
  15. $bp_registration_options = new BP_Registration_Options; 
  16.