bp_media_settings_callback_messages_document_support()

Setting > Media > Documents support

Description

Source

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

function bp_media_settings_callback_messages_document_support() {
	?>
	<input name="bp_media_messages_document_support"
		   id="bp_media_messages_document_support"
		   type="checkbox"
		   value="1"
		<?php checked( bp_is_messages_document_support_enabled() ); ?>
	/>
	<label for="bp_media_messages_document_support">
		<?php
		if ( true === bp_disable_group_messages() ) {
			_e( 'Allow members to upload documents in <strong>private messages</strong> and <strong>group messages</strong>', 'buddyboss' );
		} else {
			_e( 'Allow members to upload documents in <strong>private messages</strong>', 'buddyboss' );
		}
		?>
	</label>
	<?php
}

Changelog

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