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()
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' ), ), ) ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |