register_block_style_handle


register_block_style_handle ( $metadata, $field_name )

Parameters:
  • (array) metadata Block metadata.
  • (string) field_name Field name to pick from metadata.
Returns:
  • (string|bool) Style handle provided directly or created through style's registration, or false on failure.
Defined at:

Description

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.

Related Functions

register_block_script_handle, register_block_style, unregister_block_style, register_block_type, unregister_block_type

Top Google Results

User discussions

wpseek mobile