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. |
Code of unregister_block_pattern_category() unregister block pattern category WP 5.6
function unregister_block_pattern_category( $category_name ) {
return WP_Block_Pattern_Categories_Registry::get_instance()->unregister( $category_name );
}