wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



register_block_pattern_category › WordPress Function

Od5.5.0
Przestarzałyn/a
› register_block_pattern_category ( $category_name, $category_properties )
Parametry: (2)
  • (string) $category_name Pattern category name including namespace.
    Wymagane: Tak
  • (array) $category_properties List of properties for the block pattern. See WP_Block_Pattern_Categories_Registry::register() for accepted arguments.
    Wymagane: Tak
Powrót:
  • (bool) True if the pattern category was registered with success and false otherwise.
Zdefiniowane na:
Codex:

Registers a new pattern category.



Źródło

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