Summery Summery
Checks if a block style is registered.
Syntax Syntax
Parameters Parameters
- $block_name
-
(Required) Block type name including namespace.
- $block_style_name
-
(Required) Block style name.
Return Return
(bool) True if the block style is registered, false otherwise.
Source Source
File: wp-includes/class-wp-block-styles-registry.php
public function is_registered( $block_name, $block_style_name ) { return isset( $this->registered_block_styles[ $block_name ][ $block_style_name ] ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |