Gutenberg (blocks editor) (tag)

get_block_wrapper_attributes()

Generates a string of HTML attributes for the wrapper of the current block, adding to them all styles and capabilities declared via block supports.

has_block()

Determines whether the given string or content of the given post contains the specified block (Gutenberg block editor).

has_blocks()

Defines whether the specified string or content of the specified post contains Gutenberg blocks.

parse_blocks()

Parses the specified string with Gutenberg markup and parses it into an array of block data.

register_block_bindings_source()

Registers a new data source for blocks, allowing dynamic substitution of values in block attributes during their rendering.

register_block_pattern()

Registers a new block pattern for the block editor (Gutenberg).

register_block_pattern_category()

Registers a new category for block patterns to group them in the block editor.

register_block_style()

Registers a new style (style variation) for a block/blocks.

register_block_type()

Registers a new block type for the block editor (Gutenberg).

register_block_type_from_metadata()

Registers a block based on metadata from the file block.json.

use_block_editor_for_post()

Checks whether the specified post supports editing via the block editor (Gutenberg).

use_block_editor_for_post_type()

Checks if the post type supports editing posts via the block editor (Gutenberg).

wp_get_global_settings()

Gets global settings by merging the values of core settings, theme, and user data.

wp_get_global_stylesheet()

Gets the ready CSS code from the merged data of theme.json, style variations, and custom user settings.

wp_is_block_theme()

Checks if the current theme is a block theme (created with the block editor).