bbp_setup_user_option_filters()
Add filters to each Forums option and allow them to be overloaded from inside the $bbp->options array.
Description
Source
File: bp-forums/users/options.php
function bbp_setup_user_option_filters() { // Add filters to each Forums option foreach ( array_keys( bbp_get_default_user_options() ) as $key ) add_filter( 'get_user_option_' . $key, 'bbp_filter_get_user_option', 10, 3 ); // Allow previously activated plugins to append their own options. do_action( 'bbp_setup_user_option_filters' ); }
Changelog
Version | Description |
---|---|
bbPress (r3910) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.