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



register_block_pattern › WordPress Function

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

Registers a new block pattern.



Sorgenti

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