bp_activity_privacy_init

Only load the component if BuddyPress is loaded and initialized.

Description

bp_activity_privacy_init(); 

Usage

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

Defined (1)

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

/loader.php  
  1. function bp_activity_privacy_init() { 
  2. // Because our loader file uses BP_Component, it requires BP 1.5 or greater. 
  3. //if ( version_compare( BP_VERSION, '1.3', '>' ) ) 
  4. require( dirname( __FILE__ ) . '/includes/bp-activity-privacy-loader.php' );