wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



register_block_pattern_category › WordPress Function

Depuis5.5.0
Dépréciéen/a
› register_block_pattern_category ( $category_name, $category_properties )
Paramètres: (2)
  • (string) $category_name Pattern category name including namespace.
    Requis: Oui
  • (array) $category_properties List of properties for the block pattern. See WP_Block_Pattern_Categories_Registry::register() for accepted arguments.
    Requis: Oui
Retourne:
  • (bool) True if the pattern category was registered with success and false otherwise.
Défini(e) dans:
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 );
}