WordPress Developer Resources
New and updated in 5.0.0
Filters the content of a single block.
Parses blocks out of a content string.
Registers a block type. The recommended way is to register a block type using the metadata stored in the `block.json` file.
Unregisters a block type.
Determines whether a post or content string has blocks.
Determines whether a $post or a string contains a specific block type.
Returns an array of the names of all registered dynamic block types.
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.
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.
Filters the body placeholder text.
Fires after block assets have been enqueued for the editing interface.
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.
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.
Returns whether a post type is compatible with the block editor.
Returns all the categories for block types that will be shown in the block editor.
Filters the default array of categories for block types.
Prepares server-registered blocks for the block editor.
Renders the meta boxes forms.
Returns whether the post can be edited in the block editor.