wpseek.com
A WordPress-centric search engine for devs and theme authors



register_block_pattern_category › WordPress Function

Since5.5.0
Deprecatedn/a
register_block_pattern_category ( $category_name, $category_properties )
Parameters: (2)
  • (string) $category_name Pattern category name including namespace.
    Required: Yes
  • (array) $category_properties List of properties for the block pattern. See WP_Block_Pattern_Categories_Registry::register() for accepted arguments.
    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 );
}