Advertisement

WP_Block

Class representing a parsed instance of a block.

Advertisement

WP_Block_List

Class representing a list of block instances.

Advertisement

register_block_style_handle

Finds a style handle for the block metadata field. It detects when a path to file was provided and registers the style under automatically generated handle name. It returns unprocessed style handle otherwise.

Advertisement

generate_block_asset_handle

Generates the name for an asset based on the name of the block and the field name provided.

register_block_script_handle

Finds a script handle for the selected block metadata field. It detects when a path to file was provided and finds a corresponding asset file with details necessary to register the script under automatically generated handle name. It returns unprocessed script handle otherwise.