bbp_setup_option_filters()
Add filters to each bbPress option and allow them to be overloaded from inside the $bbp->options array.
Description Description
Source Source
File: includes/core/options.php
function bbp_setup_option_filters() { // Add filters to each bbPress option foreach ( array_keys( bbp_get_default_options() ) as $key ) { add_filter( 'pre_option_' . $key, 'bbp_filter_pre_get_option', 10, 2 ); add_filter( 'default_option_' . $key, 'bbp_filter_default_option', 10, 3 ); } // Allow previously activated plugins to append their own options. do_action( 'bbp_setup_option_filters' ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |