A WordPress-centric search engine for devs and theme authors



register_block_pattern_category ›

Since5.5.0
Deprecatedn/a
register_block_pattern_category ( $category_name, $category_properties )
Parameters: (2)
  • (string) $category_name Pattern category name.
    Required: Yes
  • (array) $category_properties Array containing the properties of the category.
    Required: Yes
Returns:
  • (bool) True if the pattern category was registered with success and false otherwise.
Defined at:
Codex:

Registers a new pattern category.



Source

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