Block Editor (Gutenberg) (category)

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.

parse_blocks()

Parses blocks out of a content string.

register_block_type()

Registers a block type.

register_block_type_from_metadata()

Registers a block type from the metadata stored in the block.json file.

use_block_editor_for_post()

Returns whether the post can be edited in the block editor.

use_block_editor_for_post_type()

Returns whether a post type is compatible with the block editor.

wp_is_block_theme()

Returns whether the current theme is a block-based theme or not.