unregister_block_pattern_category()WP 5.5.0

Unregisters a pattern category.

No Hooks.

Return

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

Usage

unregister_block_pattern_category( $category_name );
$category_name(string) (required)
Pattern category name including namespace.

Changelog

Since 5.5.0 Introduced.

unregister_block_pattern_category() code WP 6.5.2

function unregister_block_pattern_category( $category_name ) {
	return WP_Block_Pattern_Categories_Registry::get_instance()->unregister( $category_name );
}