WP_Block_Styles_Registry::get_registered( string $block_name, string $block_style_name ): array

In this article

Retrieves the properties of a registered block style for the given block type.

Parameters

$block_namestringrequired
Block type name including namespace.
$block_style_namestringrequired
Block style name.

Return

array Registered block style properties.

Source

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

Changelog

VersionDescription
5.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.