bbp_setup_option_filters

Add filters to each bbPress option and allow them to be overloaded from inside the $bbp->options array.

Description

bbp_setup_option_filters(); 

Usage

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

Defined (1)

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

/includes/core/options.php  
  1. function bbp_setup_option_filters() { 
  2.  
  3. // Add filters to each bbPress option 
  4. foreach ( array_keys( bbp_get_default_options() ) as $key ) 
  5.  
  6. // Allow previously activated plugins to append their own options.