bp_search_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-search/bp-search-settings.php

function bp_search_get_settings_fields_for_section( $section_id = '' ) {

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

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

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

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 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.