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_handle (name of the stylesheet to be enqueued), inline_style (string containing the CSS to be added). See WP_Block_Styles_Registry::register().
Links:Returns:- (bool) True if the block style was registered with success and false otherwise.
Defined at: - Introduced in WordPress: 5.3.0
- Deprecated in WordPress: —
Description
Registers a new block style.