Warning: This hook has been deprecated. Use the ‘block_editor_settings_all’ filter instead.
block_editor_settings WordPress Hook
The block_editor_settings hook is used to modify the settings of the block editor. This hook is used primarily to add custom colors and font sizes to the editor. However, it can also be used to modify the default behavior of the editor, such as disabling the ability to add new blocks.
apply_filters_deprecated( 'block_editor_settings', array $editor_settings , WP_Post $post ) #
Filters the settings to pass to the block editor.
Parameters
- $editor_settings
(array)Default editor settings.
- $post
(WP_Post)Post being edited.
Source
Changelog
Version | Description |
---|---|
5.8.0 | Use the 'block_editor_settings_all' filter instead. |
5.0.0 | Introduced. |