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