bbp_get_default_options()

Get the default site options and their values.

Description

These option

Return

(array) Filtered option names and values

Source

File: bp-forums/core/options.php

function bbp_get_default_options() {

	// Default options
	return apply_filters( 'bbp_get_default_options', array(

		/** DB Version ********************************************************/

		'_bbp_db_version'           => bbpress()->db_version,

		/** Settings **********************************************************/

		'_bbp_edit_lock'              => 5,                          // Lock post editing after 5 minutes
		'_bbp_throttle_time'          => 10,                         // Throttle post time to 10 seconds
		'_bbp_enable_favorites'       => 1,                          // Favorites
		'_bbp_enable_subscriptions'   => 1,                          // Subscriptions
		'_bbp_allow_anonymous'        => 0,                          // Allow anonymous posting
		'_bbp_allow_global_access'    => 1,                          // Users from all sites can post
		'_bbp_allow_revisions'        => 1,                          // Allow revisions
		'_bbp_allow_topic_tags'       => 1,                          // Allow topic tagging
		'_bbp_allow_threaded_replies' => 1,                          // Allow threaded replies
		'_bbp_allow_search'           => 1,                          // Allow forum-wide search
		'_bbp_thread_replies_depth'   => 6,                          // Thread replies depth
		'_bbp_use_wp_editor'          => 1,                          // Use the WordPress editor if available
		'_bbp_use_autoembed'          => 0,                          // Allow oEmbed in topics and replies
		'_bbp_theme_package_id'       => 'default',                  // The ID for the current theme package
		'_bbp_default_role'           => bbp_get_participant_role(), // Default forums role
		'_bbp_settings_integration'   => 0,                          // Put settings into existing admin pages

		/** Per Page **********************************************************/

		'_bbp_topics_per_page'      => 15,          // Topics per page
		'_bbp_replies_per_page'     => 15,          // Replies per page
		'_bbp_forums_per_page'      => 15,          // Forums per page
		'_bbp_topics_per_rss_page'  => 25,          // Topics per RSS page
		'_bbp_replies_per_rss_page' => 25,          // Replies per RSS page

		/** Page For **********************************************************/

		'_bbp_page_for_forums'      => 0,           // Page for forums
		'_bbp_page_for_topics'      => 0,           // Page for forums
		'_bbp_page_for_login'       => 0,           // Page for login
		'_bbp_page_for_register'    => 0,           // Page for register
		'_bbp_page_for_lost_pass'   => 0,           // Page for lost-pass

		/** Forum Root ********************************************************/

		'_bbp_root_slug'            => 'forums',    // Forum archive slug
		'_bbp_show_on_root'         => 'forums',    // What to show on root (forums|topics)
		'_bbp_include_root'         => 1,           // Include forum-archive before single slugs

		/** Single Slugs ******************************************************/

		'_bbp_forum_slug'           => 'forum',     // Forum slug
		'_bbp_topic_slug'           => 'topic',     // Topic slug
		'_bbp_reply_slug'           => 'reply',     // Reply slug
		'_bbp_topic_tag_slug'       => 'topic-tag', // Topic tag slug

		/** Other Slugs *******************************************************/

		'_bbp_view_slug'            => 'view',      // View slug
		'_bbp_search_slug'          => 'search',    // Search slug

		/** Topics ************************************************************/

		'_bbp_title_max_length'     => 80,          // Title Max Length
		'_bbp_super_sticky_topics'  => '',          // Super stickies

		/** Forums ************************************************************/

		'_bbp_private_forums'       => '',          // Private forums
		'_bbp_hidden_forums'        => '',          // Hidden forums

		/** BuddyBoss ********************************************************/

		'_bbp_enable_group_forums'  => 1,           // Enable BuddyBoss Group Extension
		'_bbp_group_forums_root_id' => 0,           // Group Forums parent forum id

		/** Akismet ***********************************************************/

		'_bbp_enable_akismet'       => 1            // Users from all sites can post

	) );
}

Changelog

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.