bbp_admin_get_settings_fields_for_section

Get settings fields by section.

Description

bbp_admin_get_settings_fields_for_section( (string) $section_id = '' ); 

Parameters (1)

0. $section_id — Optional. (string) => ''
The section id.

Usage

  1. if ( !function_exists( 'bbp_admin_get_settings_fields_for_section' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/admin/settings.php'; 
  3.  
  4. // The section id. 
  5. $section_id = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_admin_get_settings_fields_for_section($section_id); 
  9.  

Defined (1)

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

/includes/admin/settings.php  
  1. function bbp_admin_get_settings_fields_for_section( $section_id = '' ) { 
  2.  
  3. // Bail if section is empty 
  4. if ( empty( $section_id ) ) 
  5. return false; 
  6.  
  7. $retval = isset( $fields[$section_id] ) ? $fields[$section_id] : false; 
  8.  
  9. return (array) apply_filters( 'bbp_admin_get_settings_fields_for_section', $retval, $section_id );