Un motore di ricerca WordPress per sviluppatori e autori di temi



register_block_style ›

Da5.3.0
Deprecaton/a
register_block_style ( $block_name, $style_properties )
Parametri: (2)
  • (string) $block_name Block type name including namespace.
    Richiesto:
  • (array) $style_properties Array containing the properties of the style name, label, style (name of the stylesheet to be enqueued), inline_style (string containing the CSS to be added).
    Richiesto:
Ritorna:
  • (boolean) True if the block style was registered with success and false otherwise.
Definito a:
Codex:

Registers a new block style.



Sorgenti

function register_block_style( $block_name, $style_properties ) {
	return WP_Block_Styles_Registry::get_instance()->register( $block_name, $style_properties );
}