WP_Block_Styles_Registry::is_registered

SummerySummery

Checks if a block style is registered.

Syntax

WP_Block_Styles_Registry::is_registered( string $block_name, string $block_style_name )

ParametersParameters

$block_name

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

$block_style_name

(string) (Required) Block style name.

ReturnReturn

(bool) True if the block style is registered, false otherwise.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
5.3.0 Introduced.
Scroll to Top