Advertisement

serialize_blocks

Returns a joined string of the aggregate serialization of the given parsed blocks.

serialize_block

Returns the content of a block, including comment delimiters, serializing all attributes from the given parsed block.

strip_core_block_namespace

Returns the block name to use for serialization. This will remove the default “core/” namespace from a block name.

Advertisement

serialize_block_attributes

Given an array of attributes, returns a string in the serialized attributes format prepared for post content.

block_version

Returns the current version of the block format that the content string is using.

_restore_wpautop_hook

If do_blocks() needs to remove wpautop() from the `the_content` filter, this re-adds it afterwards, for subsequent `the_content` usage.

do_blocks

Parses dynamic blocks out of `post_content` and re-renders them.

Advertisement

parse_blocks

Parses blocks out of a content string.

render_block

Renders a single block into a HTML string.

excerpt_remove_blocks

Parses blocks out of a content string, and renders those appropriate for the excerpt.

Advertisement

has_block

Determine whether a $post or a string contains a specific block type.

has_blocks

Determine whether a post or content string has blocks.