wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



unregister_block_style › WordPress Function

Depuis5.3.0
Dépréciéen/a
unregister_block_style ( $block_name, $block_style_name )
Paramètres: (2)
  • (string) $block_name Block type name including namespace.
    Requis: Oui
  • (string) $block_style_name Block style name.
    Requis: Oui
Retourne:
  • (bool) True if the block style was unregistered with success and false otherwise.
Défini(e) dans:
Codex:

Unregisters a block style.



Source

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