unregister_block_style()WP 5.3.0

Unregisters a block style.

No Hooks.

Return

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

Usage

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.

Changelog

Since 5.3.0 Introduced.

unregister_block_style() code WP 6.5.2

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