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

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


Description Description


Parameters Parameters

$block_name

(string) (Required) Block type name including namespace.

$block_style_name

(array) (Required) Block style name.


Top ↑

Return Return

(array) Registered block style properties.


Top ↑

Source Source

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

Top ↑

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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