WordPress at Your Fingertips
function is not described

WP_Block_Styles_Registry::get_registered() public WP 5.3.0

Retrieves an array containing the properties of a registered block style.

{} It's a method of the class: WP_Block_Styles_Registry{}

No Hooks.


Array. Registered block style properties.


$WP_Block_Styles_Registry = new WP_Block_Styles_Registry();
$WP_Block_Styles_Registry->get_registered( $block_name, $block_style_name );
$block_name(string) (required)
Block type name including namespace.
$block_style_name(string) (required)
Block style name.


Since 5.3.0 Introduced.

Code of WP_Block_Styles_Registry::get_registered() WP 5.8.1

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 ];