bp_media_settings_callback_profile_media_support()

Setting > Media > Profile support

Description

Source

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

function bp_media_settings_callback_profile_media_support() {
	?>
    <input name="bp_media_profile_media_support"
           id="bp_media_profile_media_support"
           type="checkbox"
           value="1"
		<?php checked( bp_is_profile_media_support_enabled() ); ?>
    />
    <label for="bp_media_profile_media_support">
		<?php _e( 'Allow members to upload photos in <strong>profiles</strong>', 'buddyboss' ) ?>
    </label>
    <br/>
    <input name="bp_media_profile_albums_support"
           id="bp_media_profile_albums_support"
           type="checkbox"
           value="1"
		<?php echo ! bp_is_profile_media_support_enabled() ? 'disabled="disabled"' : ''; ?>
		<?php checked( bp_is_profile_albums_support_enabled() ); ?>
    />
    <label for="bp_media_profile_albums_support">
		<?php _e( 'Enable Albums', 'buddyboss' ) ?>
    </label>
	<?php
}

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.