bbp_admin_get_settings_sections()

Get the Forums settings sections.

Description

Return

(array)

Source

File: bp-forums/admin/settings.php

function bbp_admin_get_settings_sections() {
	return (array) apply_filters( 'bbp_admin_get_settings_sections', array(
		'bbp_settings_users' => array(
			'title'    => __( 'Forum User Settings', 'buddyboss' ),
			'callback' => 'bbp_admin_setting_callback_user_section',
			'page'     => 'discussion'
		),
		'bbp_settings_features' => array(
			'title'    => __( 'Forum Features', 'buddyboss' ),
			'callback' => 'bbp_admin_setting_callback_features_section',
			'page'     => 'discussion'
		),
		'bbp_settings_theme_compat' => array(
			'title'    => __( 'Forum Theme Packages', 'buddyboss' ),
			'callback' => 'bbp_admin_setting_callback_subtheme_section',
			'page'     => 'general'
		),
		'bbp_settings_per_page' => array(
			'title'    => __( 'Discussions and Replies Per Page', 'buddyboss' ),
			'callback' => 'bbp_admin_setting_callback_per_page_section',
			'page'     => 'reading'
		),
		'bbp_settings_per_rss_page' => array(
			'title'    => __( 'Discussions and Replies Per RSS Page', 'buddyboss' ),
			'callback' => 'bbp_admin_setting_callback_per_rss_page_section',
			'page'     => 'reading',
		),
		'bbp_settings_root_slugs' => array(
			'title'    => __( 'Forums Directory', 'buddyboss' ),
			'callback' => 'bbp_admin_setting_callback_root_slug_section',
			'page'     => 'permalink'
		),
		'bbp_settings_single_slugs' => array(
			'title'    => __( 'Single Forum Slugs', 'buddyboss' ),
			'callback' => 'bbp_admin_setting_callback_single_slug_section',
			'page'     => 'permalink',
		),
		// 'bbp_settings_user_slugs' => array(
		// 	'title'    => __( 'Forum User Slugs', 'buddyboss' ),
		// 	'callback' => 'bbp_admin_setting_callback_user_slug_section',
		// 	'page'     => 'permalink',
		// ),
		'bbp_settings_buddypress' => array(
			'title'    => __( 'Group Forums', 'buddyboss' ),
			'callback' => 'bbp_admin_setting_callback_buddypress_section',
			'page'     => 'buddypress',
		),
		'bbp_settings_akismet' => array(
			'title'    => __( 'Akismet Integration', 'buddyboss' ),
			'callback' => 'bbp_admin_setting_callback_akismet_section',
			'page'     => 'discussion'
		)
	) );
}

Changelog

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