wpseek.com
A WordPress-centric search engine for devs and theme authors



block_editor_settings_{$editor_name} › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
apply_filters( "block_editor_settings_{$editor_name}", $editor_settings, $editor_name )
Parameters: (2)
  • (array) $editor_settings Default editor settings.
    Required: Yes
  • (string) $editor_name The name of the editor, e.g. 'post-editor'.
    Required: Yes
Defined at:
Codex:

Filters the settings to pass to the block editor for a given editor type.

The dynamic portion of the hook name, $editor_name, refers to the name of the editor type, e.g. 'post-editor', 'site-editor', etc.





Source

$editor_settings = apply_filters( "block_editor_settings_{$editor_name}", $editor_settings, $editor_name );