bbp_add_activation_redirect

Redirect user to bbPress's What's New page on activation.

Description

bbp_add_activation_redirect(); 

Usage

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

Defined (1)

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

/includes/core/update.php  
  1. function bbp_add_activation_redirect() { 
  2.  
  3. // Bail if activating from network, or bulk 
  4. if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) 
  5. return; 
  6.  
  7. // Add the transient to redirect 
  8. set_transient( '_bbp_activation_redirect', true, 30 );