wpseek.com
A WordPress-centric search engine for devs and theme authors



unregister_block_style › WordPress Function

Since5.3.0
Deprecatedn/a
unregister_block_style ( $block_name, $block_style_name )
Parameters: (2)
  • (string) $block_name Block type name including namespace.
    Required: Yes
  • (string) $block_style_name Block style name.
    Required: Yes
Returns:
  • (bool) True if the block style was unregistered with success and false otherwise.
Defined at:
Codex:

Unregisters a block style.



Source

function unregister_block_style( $block_name, $block_style_name ) {
	return WP_Block_Styles_Registry::get_instance()->unregister( $block_name, $block_style_name );
}