WordPress at Your Fingertips
function is not described

unregister_block_style() WP 5.3.0

Unregisters a block style.

No Hooks.


true|false. True if the block style was unregistered with success and false otherwise.


unregister_block_style( $block_name, $block_style_name );
$block_name(string) (required)
Block type name including namespace.
$block_style_name(string) (required)
Block style name.

Code of unregister_block_style() WP 5.8.3

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