WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Block_Styles_Registry::unregister() public WP 1.0

Unregisters a block style.

{} Это метод класса: WP_Block_Styles_Registry{}

Хуков нет.

Возвращает

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

Использование

$WP_Block_Styles_Registry = new WP_Block_Styles_Registry();
$WP_Block_Styles_Registry->unregister( $block_name, $block_style_name );
$block_name(строка) (обязательный)
Block type name including namespace.
$block_style_name(строка) (обязательный)
Block style name.

Код WP_Block_Styles_Registry::unregister() WP 5.8.1

public function unregister( $block_name, $block_style_name ) {
	if ( ! $this->is_registered( $block_name, $block_style_name ) ) {
		_doing_it_wrong(
			__METHOD__,
			/* translators: 1: Block name, 2: Block style name. */
			sprintf( __( 'Block "%1$s" does not contain a style named "%2$s".' ), $block_name, $block_style_name ),
			'5.3.0'
		);
		return false;
	}

	unset( $this->registered_block_styles[ $block_name ][ $block_style_name ] );

	return true;
}