WordPress 5.0.0 Hooks, Functions, Classes and Methods
Page 10

has_block()

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

has_blocks()

Determines whether a post or content string has blocks.

register_block_type()

Registers a block type. The recommended way is to register a block type using the metadata stored in the block.json file.