block_editor_settings filter-hookWP 5.0.0

Deprecated from version 5.8.0. It is no longer supported and can be removed in future releases. See block_editor_settings_all.

Deprecated: 5.8.0 Use the {@see 'block_editor_settings_all'} filter instead.

Filters the settings to pass to the block editor.


add_filter( 'block_editor_settings', 'wp_kama_block_editor_settings_filter', 10, 3 );

 * Function for `block_editor_settings` filter-hook.
 * @param array   $editor_settings Default editor settings.
 * @param WP_Post $post            Post being edited.
 * @param         $string          
 * @return array
function wp_kama_block_editor_settings_filter( $editor_settings, $post, $string ){

	// filter...
	return $editor_settings;
Default editor settings.
Post being edited.


Since 5.0.0 Introduced.
Deprecated Since 5.8.0 Use the {@see 'block_editor_settings_all'} filter instead.

Where the hook is called

wp-includes/block-editor.php 521
$editor_settings = apply_filters_deprecated( 'block_editor_settings', array( $editor_settings, $post ), '5.8.0', 'block_editor_settings_all' );

Where the hook is used in WordPress

Usage not found.