bbp_admin_get_settings_fields_for_section( string $section_id = '' )

Get settings fields by section.

Description

Parameters

$section_id

(Optional)

Default value: ''

Return

(mixed) False if section is invalid, array of fields otherwise.

Source

File: bp-forums/admin/settings.php

function bbp_admin_get_settings_fields_for_section( $section_id = '' ) {

	// Bail if section is empty
	if ( empty( $section_id ) )
		return false;

	$fields = bbp_admin_get_settings_fields();
	$retval = isset( $fields[$section_id] ) ? $fields[$section_id] : false;

	return (array) apply_filters( 'bbp_admin_get_settings_fields_for_section', $retval, $section_id );
}

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.