Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



register_block_pattern_category ›

Seit5.5.0
Veraltetn/v
register_block_pattern_category ( $category_name, $category_properties )
Parameter: (2)
  • (string) $category_name Pattern category name.
    Erforderlich: Ja
  • (array) $category_properties Array containing the properties of the category.
    Erforderlich: Ja
Gibt zurück:
  • (bool) True if the pattern category was registered with success and false otherwise.
Definiert in:
Codex:

Registers a new pattern category.



Quellcode

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