backpress_add_option

The BuddyPress backpress add option function.

Description

backpress_add_option( $option, $value ); 

Parameters (2)

0. $option
The option.
1. $value
The value.

Usage

  1. if ( !function_exists( 'backpress_add_option' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/backpress/functions.bp-options.php'; 
  3.  
  4. // The option. 
  5. $option = null; 
  6.  
  7. // The value. 
  8. $value = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = backpress_add_option($option, $value); 
  12.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/backpress/functions.bp-options.php  
  1. function backpress_add_option( $option, $value ) 
  2. if ( !class_exists('BP_Options') ) { 
  3. return; 
  4.  
  5. return BP_Options::add( $option, $value );