bp_gifts_init

Only load the component if BuddyPress is loaded and initialized.

Description

bp_gifts_init(); 

Usage

  1. if ( !function_exists( 'bp_gifts_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-gifts-latest-2014/loader.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_gifts_init(); 
  7.  

Defined (1)

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

/loader.php  
  1. function bp_gifts_init() { 
  2.  
  3. require( dirname( __FILE__ ) . '/includes/bp-gifts-core.php' ); 
  4. if ( version_compare( BP_VERSION, '1.4', '>' ) ) 
  5. require( dirname( __FILE__ ) . '/includes/bp-gifts-loader.php' ); 
  6.