bp_members_editor_settings( array $bp_editor_settings = array() )

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

Parameters Parameters


(array) (Optional) BP blocks editor settings.

Default value: array()

Top ↑

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(
			'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' ),

Top ↑

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.