bp_blocks_editor_settings( array $editor_settings = array() )

Filters the Block Editor settings to gather BuddyPress ones into a bp key.

Parameters Parameters


(array) (Optional) Default editor settings.

Default value: array()

Top ↑

Return Return

(array) The editor settings including BP blocks specific ones.

Source Source

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

function bp_blocks_editor_settings( $editor_settings = array() ) {
	 * Filter here to include your BP Blocks specific settings.
	 * @since 6.0.0
	 * @param array $bp_editor_settings BP blocks specific editor settings.
	$bp_editor_settings = (array) apply_filters( 'bp_blocks_editor_settings', array() );

	if ( $bp_editor_settings ) {
		$editor_settings['bp'] = $bp_editor_settings;

	return $editor_settings;

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.