File: wp-includes/blocks.php
-
functionparse_blocks()
Parses blocks out of a content string.
-
Filter to allow plugins to replace the server-side block parser.
-
functiondo_blocks()
Parses dynamic blocks out of `post_content` and re-renders them.
-
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.