WP_Block_Type::__construct

SummerySummery

Constructor.

Syntax

WP_Block_Type::__construct( string $block_type, array|string $args = array() )

DescriptionDescription

Will populate object properties from the provided arguments.

ParametersParameters

$block_type

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

$args

(array|string) (Optional) Array or string of arguments for registering a block type.

Default value: array()

SourceSource

File: wp-includes/class-wp-block-type.php


			

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.

See alsoSee also

Scroll to Top