New and updated in 5.8.0
-
Generates a unique slug for templates.
-
functionthe_block_template_skip_link()
Prints the skip-link script & styles.
-
functionwp_enable_block_templates()
Enables the block templates (editor mode) for themes with theme.json by default.
-
classWP_Block_Template
Class representing a block template.
-
Filters the update response for a given plugin hostname.
-
functionget_block_editor_settings()
Returns the contextualized block editor settings for a selected editor context.
-
Filters the settings to pass to the block editor for all editor type.
-
functionblock_editor_rest_api_preload()
Preloads 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.
-
Filters the array of REST API paths that will be used to preloaded common data for the block editor.
-
functionget_block_editor_theme_styles()
Creates an array of theme styles to load into the block editor.
-
Returns the block editor settings needed to use the Legacy Widget block which is not registered by default.
-
Filters the list of widget-type IDs that should **not** be offered by the Legacy Widget block.
-
functionget_default_block_categories()
Returns the list of default categories for block types.
-
Filters the default array of categories for block types.
-
functionget_allowed_block_types()
Gets the list of allowed block types to use in the block editor.
-
Filters the allowed block types for all editor types.
-
Returns the default block editor settings.