wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



register_block_pattern_category › WordPress Function

Da5.5.0
Deprecaton/a
› register_block_pattern_category ( $category_name, $category_properties )
Parametri: (2)
  • (string) $category_name Pattern category name including namespace.
    Richiesto: Sì
  • (array) $category_properties List of properties for the block pattern. See WP_Block_Pattern_Categories_Registry::register() for accepted arguments.
    Richiesto: Sì
Ritorna:
  • (bool) True if the pattern category was registered with success and false otherwise.
Definito a:
Codex:

Registers a new pattern category.



Sorgenti

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