Uses
Uses | Description |
---|---|
wp-includes/class-wp-block-styles-registry.php: WP_Block_Styles_Registry::is_registered() | Checks if a block style is registered. |
Retrieves an array containing the properties of a registered block style.
(string) (Required) Block type name including namespace.
(string) (Required) Block style name.
(array) Registered block style properties.
File: wp-includes/class-wp-block-styles-registry.php
public function get_registered( $block_name, $block_style_name ) { if ( ! $this->is_registered( $block_name, $block_style_name ) ) { return null; } return $this->registered_block_styles[ $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/classes/wp_block_styles_registry/get_registered