Uses
Uses | Description |
---|---|
wp-includes/class-wp-block-styles-registry.php: WP_Block_Styles_Registry::get_instance() | Utility method to retrieve the main instance of the class. |
Unregisters a block style.
(string) (Required) Block type name including namespace.
(array) (Required) Block style name.
(boolean) True if the block style was unregistered with success and false otherwise.
File: wp-includes/blocks.php
function unregister_block_style( $block_name, $block_style_name ) { return WP_Block_Styles_Registry::get_instance()->unregister( $block_name, $block_style_name ); }
Version | Description |
---|---|
5.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/unregister_block_style