WPDev.one
Core Function
View Source on Trac ↗

get_block_editor_settings()

get_block_editor_settings( array $custom_settings, mixed $block_editor_context )

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

Parameters 2 required

Name / Type Description
$custom_settings
array

Custom settings to use with the given editor type.

Required
$block_editor_context
WP_Block_Editor_Context

The current block editor context.

Required

Return Value

(array)
The contextualized block editor settings.

Function Information

Since Version
5.8.0
Source File
wp-includes/block-editor.php
Advertisement