unregister_block_style()
Unregisters a block style.
No Hooks.
Return
true|false
. True if the block style was unregistered with success and false otherwise.
Usage
unregister_block_style( $block_name, $block_style_name );
- $block_name(string) (required)
- Block type name including namespace.
- $block_style_name(string) (required)
- Block style name.
Changelog
Since 5.3.0 | Introduced. |
unregister_block_style() unregister block style code WP 6.7.1
function unregister_block_style( $block_name, $block_style_name ) { return WP_Block_Styles_Registry::get_instance()->unregister( $block_name, $block_style_name ); }