bp_media_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-media/bp-media-settings.php

288
289
290
291
292
293
294
295
296
297
298
299
function bp_media_get_settings_fields_for_section( $section_id = '' ) {
 
    // Bail if section is empty
    if ( empty( $section_id ) ) {
        return false;
    }
 
    $fields = bp_media_get_settings_fields();
    $retval = isset( $fields[ $section_id ] ) ? $fields[ $section_id ] : false;
 
    return (array) apply_filters( 'bp_media_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.