bp_activation

Fire activation hooks and events.

Description

bp_activation(); 

Runs on BuddyPress activation.


Usage

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

Defined (1)

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

/bp-core/bp-core-update.php  
  1. function bp_activation() { 
  2.  
  3. // Force refresh theme roots. 
  4. delete_site_transient( 'theme_roots' ); 
  5.  
  6. // Add options. 
  7.  
  8. /** 
  9. * Fires during the activation of BuddyPress. 
  10. * Use as of (1.6.0) 
  11. * @since 1.6.0 
  12. */ 
  13.  
  14. // @deprecated as of (1.6)