register_block_style


register_block_style ( $block_name, $style_properties )

Parameters:
  • (string) block_name Block type name including namespace.
  • (array) style_properties Array containing the properties of the style name, label, style (name of the stylesheet to be enqueued), inline_style (string containing the CSS to be added).
Returns:
  • (bool) True if the block style was registered with success and false otherwise.
Defined at:

Description

Registers a new block style.

Related Functions

unregister_block_style, register_block_type, unregister_block_type, register_block_style_handle, register_block_script_handle

Top Google Results

User discussions

wpseek mobile