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



register_block_pattern › WordPress Function

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

Registers a new block pattern.



Źródło

function register_block_pattern( $pattern_name, $pattern_properties ) {
	return WP_Block_Patterns_Registry::get_instance()->register( $pattern_name, $pattern_properties );
}