bbp_admin_get_settings_sections

Get the Forums settings sections.

Description

(array) apply_filters( 'bbp_admin_get_settings_sections', (callback) $array ); 

Returns (array)

Parameters (1)

0. $array — Optional. (callback) => array( 'bbp_settings_users' => array( 'title' => __( 'Forum User Settings', 'bbpress' ), 'callback' => 'bbp_admin_setting_callback_user_section', 'page' => 'discussion' ), 'bbp_settings_features' => array( 'title' => __( 'Forum Features', 'bbpress' ), 'callback' => 'bbp_admin_setting_callback_features_section', 'page' => 'discussion' ), 'bbp_settings_theme_compat' => array( 'title' => __( 'Forum Theme Packages', 'bbpress' ), 'callback' => 'bbp_admin_setting_callback_subtheme_section', 'page' => 'general' ), 'bbp_settings_per_page' => array( 'title' => __( 'Topics and Replies Per Page', 'bbpress' ), 'callback' => 'bbp_admin_setting_callback_per_page_section', 'page' => 'reading' ), 'bbp_settings_per_rss_page' => array( 'title' => __( 'Topics and Replies Per RSS Page', 'bbpress' ), 'callback' => 'bbp_admin_setting_callback_per_rss_page_section', 'page' => 'reading', ), 'bbp_settings_root_slugs' => array( 'title' => __( 'Forum Root Slug', 'bbpress' ), 'callback' => 'bbp_admin_setting_callback_root_slug_section', 'page' => 'permalink' ), 'bbp_settings_single_slugs' => array( 'title' => __( 'Single Forum Slugs', 'bbpress' ), 'callback' => 'bbp_admin_setting_callback_single_slug_section', 'page' => 'permalink', ), 'bbp_settings_user_slugs' => array( 'title' => __( 'Forum User Slugs', 'bbpress' ), 'callback' => 'bbp_admin_setting_callback_user_slug_section', 'page' => 'permalink', ), 'bbp_settings_buddypress' => array( 'title' => __( 'BuddyPress Integration', 'bbpress' ), 'callback' => 'bbp_admin_setting_callback_buddypress_section', 'page' => 'buddypress', ), 'bbp_settings_akismet' => array( 'title' => __( 'Akismet Integration', 'bbpress' ), 'callback' => 'bbp_admin_setting_callback_akismet_section', 'page' => 'discussion' ) )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'bbp_admin_get_settings_sections', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bbp_admin_get_settings_sections callback 
  2. function filter_bbp_admin_get_settings_sections( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bbp_admin_get_settings_sections', 'filter_bbp_admin_get_settings_sections', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bbp_admin_get_settings_sections', 'filter_bbp_admin_get_settings_sections', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/admin/settings.php  
  1. return (array) apply_filters( 'bbp_admin_get_settings_sections', array(