Title: block_editor_settings
Published: December 6, 2018
Last modified: February 24, 2026

---

# apply_filters_deprecated( ‘block_editor_settings’, array $editor_settings, WP_Post $post )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#wp--skip-link--target)

This hook has been deprecated since 5.8.0. Use the {@see ‘block_editor_settings_all’}
filter instead.

Filters the settings to pass to the block editor.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#parameters)󠁿

 `$editor_settings`array

Default editor settings.

`$post`[WP_Post](https://developer.wordpress.org/reference/classes/wp_post/)

Post being edited.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#source)󠁿

    ```php
    $editor_settings = apply_filters_deprecated( 'block_editor_settings', array( $editor_settings, $post ), '5.8.0', 'block_editor_settings_all' );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/block-editor.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/block-editor.php#L685)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/block-editor.php#L685-L685)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#related)󠁿

| Used by | Description | 
| [get_block_editor_settings()](https://developer.wordpress.org/reference/functions/get_block_editor_settings/)`wp-includes/block-editor.php` |

Returns the contextualized block editor settings for a selected editor context.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.8.0](https://developer.wordpress.org/reference/since/5.8.0/) | Deprecated. Use the ['block_editor_settings_all'](https://developer.wordpress.org/reference/hooks/block_editor_settings_all/) filter instead. | 
| [5.0.0](https://developer.wordpress.org/reference/since/5.0.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#user-contributed-notes)󠁿

 1.   [Skip to note 3 content](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#comment-content-4755)
 2.    [Darren Cooney](https://profiles.wordpress.org/dcooney/)  [  5 years ago  ](https://developer.wordpress.org/reference/hooks/block_editor_settings/#comment-4755)
 3.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fblock_editor_settings%2F%23comment-4755)
     Vote results for this note: 1[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fblock_editor_settings%2F%23comment-4755)
 4.      ```php
         /**
          * Remove DropCap option from settings panel.
          * 
          * @param   array       $settings   Default editor settings. 
          * @return  array       $settings   Filtered block editor settings.
          */
         add_filter( 'block_editor_settings', function( $editor_settings ) {
         	$editor_settings['__experimentalFeatures']['global']['typography']['dropCap'] = false;
         	return $editor_settings;
         } );
         ```
     
 5.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fblock_editor_settings%2F%3Freplytocom%3D4755%23feedback-editor-4755)
 6.   [Skip to note 4 content](https://developer.wordpress.org/reference/hooks/block_editor_settings/?output_format=md#comment-content-3217)
 7.    [Mahdi Yazdani](https://profiles.wordpress.org/mahdiyazdani/)  [  7 years ago  ](https://developer.wordpress.org/reference/hooks/block_editor_settings/#comment-3217)
 8.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fblock_editor_settings%2F%23comment-3217)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fblock_editor_settings%2F%23comment-3217)
 9.      ```php
         /**
          * Adds a custom parameter to the editor settings that is used
          * to track whether the main sidebar has widgets.
          *
          * @param 	array   	$settings 	Default editor settings.
          * @param 	WP_Post 	$post 		Post being edited.
          * @return 	array 		$settings 	Filtered block editor settings.
          */
         function prefix_custom_editor_settings( $settings, $post ) {
         	$settings['isSidebarActive'] = FALSE;
     
         	// Determines whether a sidebar is in use.
         	if ( is_active_sidebar( 'sidebar-1' ) ) {
         		$settings['isSidebarActive'] = TRUE;
         	} // End If Statement
     
         	return $settings;
         }
         add_filter( 'block_editor_settings', 'prefix_custom_editor_settings', 10, 2 );
         ```
     
 10.     ```javascript
         ( function() {
         	/**
         	 * Check if the main sidebar is active (has widgets).
         	 *
         	 * This uses a custom property `isSidebarActive` added via the
         	 * `block_editor_settings` filter.
         	 *
         	 * @return 	{boolean} 	Whether sidebar is active.
         	 */
         	const sidebarIsActive = () => {
         		let settings = wp.data.select( 'core/editor' ).getEditorSettings();
     
         		if ( settings.hasOwnProperty( 'isSidebarActive' ) && !! settings.isSidebarActive ) {
         			return true;
         		} // End If Statement
     
         		return false;
         	};
         } )();
         ```
     
 11.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fblock_editor_settings%2F%3Freplytocom%3D3217%23feedback-editor-3217)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fblock_editor_settings%2F)
before being able to contribute a note or feedback.