bp_members_editor_settings( array $bp_editor_settings = array() )
Add BP Members 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 Members blocks editor settings.
Source Source
File: bp-members/bp-members-blocks.php
function bp_members_editor_settings( $bp_editor_settings = array() ) { $bp = buddypress(); return array_merge( $bp_editor_settings, array( 'members' => array( 'isMentionEnabled' => bp_is_active( 'activity' ) && bp_activity_do_mentions(), 'isAvatarEnabled' => $bp->avatar && $bp->avatar->show_avatars, 'isCoverImageEnabled' => bp_is_active( 'members', 'cover_image' ), ), ) ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |