A WordPress-centric search engine for devs and theme authors

wp-includes/block-editor.php › WordPress File

Block Editor API.

Function Short description
block_editor_rest_api_preloadPreloads common data used with the block editor by specifying an array of REST API paths that will be preloaded for a given block editor context.
get_allowed_block_typesGets the list of allowed block types to use in the block editor.
get_block_categoriesReturns all the categories for block types that will be shown in the block editor.
get_block_editor_settingsReturns the contextualized block editor settings for a selected editor context.
get_block_editor_theme_stylesCreates an array of theme styles to load into the block editor.
get_default_block_categoriesReturns the list of default categories for block types.
get_default_block_editor_settingsReturns the default block editor settings.
get_legacy_widget_block_editor_settingsReturns the block editor settings needed to use the Legacy Widget block which is not registered by default.