bbp_add_options()
Add default options
Description
Hooked to bbp_activate, it is only called once when Forums is activated. This is non-destructive, so existing settings will not be overridden.
Source
File: bp-forums/core/options.php
function bbp_add_options() { // Add default options foreach ( bbp_get_default_options() as $key => $value ) add_option( $key, $value ); // Allow previously activated plugins to append their own options. do_action( 'bbp_add_options' ); }
Changelog
Version | Description |
---|---|
bbPress (r3421) | 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.