WP_Block_Parser_Block::__construct

SummerySummery

Constructor.

Syntax

WP_Block_Parser_Block::__construct( string $name, array $attrs, array $innerBlocks, string $innerHTML, array $innerContent )

DescriptionDescription

Will populate object properties from the provided arguments.

ParametersParameters

$name

(string) (Required) Name of block.

$attrs

(array) (Optional) set of attributes from block comment delimiters.

$innerBlocks

(array) (Optional) List of inner blocks (of this same class).

$innerHTML

(string) (Optional) Resultant HTML from inside block comment delimiters after removing inner blocks.

$innerContent

(array) (Optional) List of string fragments and null markers where inner blocks were found.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
3.8.0 Introduced.
Scroll to Top