A WordPress-centric search engine for devs and theme authors



unregister_block_pattern_category ›

Since5.5.0
Deprecatedn/a
unregister_block_pattern_category ( $category_name )
Parameters:
  • (string) $category_name Pattern category name including namespace.
    Required: Yes
Returns:
  • (bool) True if the pattern category was unregistered with success and false otherwise.
Defined at:
Codex:

Unregisters a pattern category.



Source

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