Uma área de pesquisa sobre o WordPress para devs e autores do tema



unregister_block_style ›

Desde5.3.0
Obsoleton/a
unregister_block_style ( $block_name, $block_style_name )
Parâmetros: (2)
  • (string) $block_name Block type name including namespace.
    Required: Yes
  • (array) $block_style_name Block style name.
    Required: Yes
Retorna:
  • (boolean) True if the block style was unregistered with success and false otherwise.
Definido em:
Codex:

Unregisters a block style.



Fonte

function unregister_block_style( $block_name, $block_style_name ) {
	return WP_Block_Styles_Registry::get_instance()->unregister( $block_name, $block_style_name );
}