WordPress at Your Fingertips
function is not described

register_block_pattern_category() WP 5.5.0

Registers a new pattern category.

No Hooks.


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


register_block_pattern_category( $category_name, $category_properties );
$category_name(string) (required)
Pattern category name including namespace.
$category_properties(array) (required)
Array containing the properties of the category.

Code of register_block_pattern_category() WP 5.8.3

function register_block_pattern_category( $category_name, $category_properties ) {
	return WP_Block_Pattern_Categories_Registry::get_instance()->register( $category_name, $category_properties );