unregister_block_style

Advertisement

Summery Summery

Unregisters a block style.

Syntax Syntax

unregister_block_style( string $block_name, array $block_style_name )

Parameters Parameters

$block_name

(string) (Required) Block type name including namespace.

$block_style_name

(array) (Required) Block style name.

Return Return

(boolean) True if the block style was unregistered with success and false otherwise.

Source Source

File: wp-includes/blocks.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.