bp_groups_editor_settings( array $bp_editor_settings = array() )

Add BP Groups blocks specific settings to the BP Blocks Editor ones.


Parameters Parameters

$bp_editor_settings

(array) (Optional) BP blocks editor settings.

Default value: array()


Top ↑

Return Return

(array) BP Groups blocks editor settings.


Source Source

File: bp-groups/bp-groups-blocks.php

function bp_groups_editor_settings( $bp_editor_settings = array() ) {
	$bp = buddypress();

	return array_merge(
		$bp_editor_settings,
		array(
			'groups' => array(
				'isAvatarEnabled'     => $bp->avatar && $bp->avatar->show_avatars && ! bp_disable_group_avatar_uploads(),
				'isCoverImageEnabled' => bp_is_active( 'groups', 'cover_image' ),
			),
		)
	);
}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.