Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
bbp_filter_pre_get_option( bool $value = false, string $option = '' )
Filter pre options and maybe overloaded from the $bbp->options array.
Description Description
This function should not be called directly.
Parameters Parameters
- $value
-
(Optional) Default value false
Default value: false
- $option
-
(Optional) Name of the option
Default value: ''
Return Return
(mixed) false if not overloaded, mixed if set
Source Source
File: includes/core/options.php
function bbp_filter_pre_get_option( $value = false, $option = '' ) { // Check the options global for preset value if ( isset( bbpress()->options[ $option ] ) ) { $value = bbpress()->options[ $option ]; } // Always return a value, even if false return $value; }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |