Block type name including namespace or array of namespaced block type names.
$style_propertiesarray
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), style_data (theme.json-like array to generate CSS from). See WP_Block_Styles_Registry::register().
Return
bool
True if the block style was registered with success and false otherwise.
Signature, return type and hooks compared across 5 parsed releases.
6.6.0
Added support for registering styles for multiple block types.from the docblock
5.3.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/blocks.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.