bp_document_get_settings_sections()

Get the Document settings sections.

Description

Return

(array)

Source

File: bp-media/bp-media-settings.php

function bp_document_get_settings_sections() {

	return (array) apply_filters(
		'bp_document_get_settings_sections',
		array(
			'bp_document_settings_extensions' => array(
				'page'     => 'document',
				'title'    => sprintf(
						'<a href="%1$s" rel="nofollow">%2$s</a> %3$s',
						bp_get_admin_url(
								add_query_arg(
										array(
												'page' => 'bp-settings',
												'tab'  => 'bp-media#bp_media_settings_documents',
										),
										'admin.php'
								)
						),
						__( 'Documents', 'buddyboss' ),
						__( '&#8594; File Extensions', 'buddyboss' )
				),
				'callback' => 'bp_document_settings_callback_extension_section',
			),
		)
	);
}

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.