WP_Block_Styles_Registry::get_registered_styles_for_block

SummerySummery

Retrieves registered block styles for a specific block.

Syntax

WP_Block_Styles_Registry::get_registered_styles_for_block( string $block_name )

ParametersParameters

$block_name

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

ReturnReturn

(array) Array whose keys are block style names and whose value are block style properties.

SourceSource

File: wp-includes/class-wp-block-styles-registry.php


			

ChangelogChangelog

Changelog
Version Description
5.3.0 Introduced.
Scroll to Top