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.


Top ↑

Source

File: wp-includes/block-editor.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.8.0Use the 'block_editor_settings_all' filter instead.
5.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.