New and updated in 5.0.0
-
hookrender_block
Filters the content of a single block.
-
functionparse_blocks()
Parses blocks out of a content string.
-
functionregister_block_type()
Registers a block type. The recommended way is to register a block type using the metadata stored in the `block.json` file.
-
functionunregister_block_type()
Unregisters a block type.
-
functionhas_blocks()
Determines whether a post or content string has blocks.
-
functionhas_block()
Determines whether a $post or a string contains a specific block type.
-
functionget_dynamic_block_names()
Returns an array of the names of all registered dynamic block types.
-
functionexcerpt_remove_blocks()
Parses blocks out of a content string, and renders those appropriate for the excerpt.
-
Filters the list of blocks that can contribute to the excerpt.
-
functionrender_block()
Renders a single block into a HTML string.
-
Filters the settings to pass to the block editor.
-
Filters the array of paths that will be preloaded.
-
Filters the allowed block types for the editor.
-
hookwrite_your_story
Filters the body placeholder text.
-
Fires after block assets have been enqueued for the editing interface.
-
functionwp_refresh_heartbeat_nonces()
Adds the latest Heartbeat and REST API nonce to the Heartbeat response.
-
Renders a “fake” meta box with an information message, shown on the block editor, when an incompatible meta box is found.
-
function_get_plugin_from_callback()
Internal helper function to find the plugin from a meta box callback.
-
Sets or returns whether the block editor is loading on the current screen.
-
Fires right before the meta boxes are rendered.
-
Renders the hidden form required for the meta boxes form.
-
Adds hidden input fields to the meta box save form.
-
Filters whether a post is able to be edited in the block editor.
-
functionuse_block_editor_for_post_type()
Returns whether a post type is compatible with the block editor.
-
Filters whether a post is able to be edited in the block editor.
-
functionget_block_categories()
Returns all the categories for block types that will be shown in the block editor.
-
hookblock_categories
Filters the default array of categories for block types.
-
Prepares server-registered blocks for the block editor.
-
functionthe_block_editor_meta_boxes()
Renders the meta boxes forms.
-
functionuse_block_editor_for_post()
Returns whether the post can be edited in the block editor.