bp_document_get_settings_fields_for_section( string $section_id = '' )
Get settings fields by section.
Description
Parameters
- $section_id
-
(Optional) Section id.
Default value: ''
Return
(mixed) False if section is invalid, array of fields otherwise.
Source
File: bp-media/bp-media-settings.php
function bp_document_get_settings_fields_for_section( $section_id = '' ) { // Bail if section is empty. if ( empty( $section_id ) ) { return false; } $fields = bp_document_get_settings_fields(); $retval = isset( $fields[ $section_id ] ) ? $fields[ $section_id ] : false; return (array) apply_filters( 'bp_document_get_settings_fields_for_section', $retval, $section_id ); }
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.