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:
  • (boolean) 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, wp_register_style, register_block_core_rss

Top Google Results

User discussions

wpseek mobile