parse_blocks()
Parses blocks out of a content string.
Parses blocks out of a content string.
Finds a script handle for the selected block metadata field. It detects when a path to file was provided and finds a corresponding asset…
Registers a new block style.
Finds a style handle for the block metadata field. It detects when a path to file was provided and registers the style under automatically…
Registers a block type. The recommended way is to register a block type using the metadata stored in the block.json file.
Registers a block type from the metadata stored in the block.json file.
Removes the block asset’s path prefix if provided.
Renders a single block into a HTML string.
Returns the content of a block, including comment delimiters, serializing all attributes from the given parsed block.
Given an array of attributes, returns a string in the serialized attributes format prepared for post content.