bb_upgrade_1130

The BuddyPress bb upgrade 1130 function.

Description

bb_upgrade_1130(); 

Usage

  1. if ( !function_exists( 'bb_upgrade_1130' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-upgrade.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bb_upgrade_1130(); 
  7.  

Defined (1)

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

/bp-forums/bbpress/bb-admin/includes/functions.bb-upgrade.php  
  1. function bb_upgrade_1130() { 
  2. if ( $dbv = bb_get_option_from_db( 'bb_db_version' ) && $dbv >= 2471 ) 
  3. return; 
  4.  
  5. // If the option is already there, then return 
  6. if ( bb_get_option( 'enable_subscriptions' ) ) 
  7. return; 
  8.  
  9. bb_update_option( 'enable_subscriptions', 1 ); 
  10.  
  11. bb_update_option( 'bb_db_version', 2471 ); 
  12.  
  13. return 'Added subscriptions option and set its value to true: ' . __FUNCTION__;