bbp_setup_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/core/options.php

function bbp_setup_option_filters() {

	// Add filters to each Forums option
	foreach ( array_keys( bbp_get_default_options() ) as $key )
		add_filter( 'pre_option_' . $key, 'bbp_pre_get_option' );

	// Allow previously activated plugins to append their own options.
	do_action( 'bbp_setup_option_filters' );
}

Changelog

Changelog
Version Description
bbPress (r3451) 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.