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



register_block_pattern_category › WordPress Function

Seit5.5.0
Veraltetn/v
register_block_pattern_category ( $category_name, $category_properties )
Parameter: (2)
  • (string) $category_name Pattern category name including namespace.
    Erforderlich: Ja
  • (array) $category_properties List of properties for the block pattern. See WP_Block_Pattern_Categories_Registry::register() for accepted arguments.
    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 );
}