unregister_block_pattern()WP 5.5.0

Unregisters a block pattern.

No Hooks.

Return

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

Usage

unregister_block_pattern( $pattern_name );
$pattern_name(string) (required)
Block pattern name including namespace.

Changelog

Since 5.5.0 Introduced.

unregister_block_pattern() code WP 6.4.3

function unregister_block_pattern( $pattern_name ) {
	return WP_Block_Patterns_Registry::get_instance()->unregister( $pattern_name );
}