Summery Summery
Constructor.
Syntax Syntax
Description Description
Will populate object properties from the provided arguments.
Parameters Parameters
- $name
-
(Required) Name of block.
- $attrs
-
(Optional) set of attributes from block comment delimiters.
- $innerBlocks
-
(Optional) List of inner blocks (of this same class).
- $innerHTML
-
(Optional) Resultant HTML from inside block comment delimiters after removing inner blocks.
- $innerContent
-
(Optional) List of string fragments and null markers where inner blocks were found.
Source Source
File: wp-includes/class-wp-block-parser.php
function __construct( $name, $attrs, $innerBlocks, $innerHTML, $innerContent ) {
$this->blockName = $name;
$this->attrs = $attrs;
$this->innerBlocks = $innerBlocks;
$this->innerHTML = $innerHTML;
$this->innerContent = $innerContent;
}
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 3.8.0 | Introduced. |