A WordPress-centric search engine for devs and theme authors

wp-includes/blocks.php ›

Functions related to registering and parsing blocks.

Function Short description
block_versionReturns the current version of the block format that the content string is using.
do_blocksParses dynamic blocks out of `post_content` and re-renders them.
excerpt_remove_blocksParses blocks out of a content string, and renders those appropriate for the excerpt.
get_dynamic_block_namesReturns an array of the names of all registered dynamic block types.
has_blockDetermine whether a $post or a string contains a specific block type.
has_blocksDetermine whether a post or content string has blocks.
parse_blocksParses blocks out of a content string.
register_block_styleRegisters a new block style.
register_block_typeRegisters a block type.
render_blockRenders a single block into a HTML string.
unregister_block_styleUnregisters a block style.
unregister_block_typeUnregisters a block type.
_excerpt_render_inner_columns_blocksRender inner blocks from the `core/columns` block for generating an excerpt.
_restore_wpautop_hookIf do_blocks() needs to remove wpautop() from the `the_content` filter, this re-adds it afterwards, for subsequent `the_content` usage.