[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/ -> class-wp-block-parser-block.php (summary)

Block Serialization Parser

File Size: 90 lines (3 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Block_Parser_Block:: (1 method):
  __construct()


Class: WP_Block_Parser_Block  - X-Ref

Class WP_Block_Parser_Block

Holds the block structure in memory

__construct( $name, $attrs, $inner_blocks, $inner_html, $inner_content )   X-Ref
Constructor.

Will populate object properties from the provided arguments.

param: string $name          Name of block.
param: array  $attrs         Optional set of attributes from block comment delimiters.
param: array  $inner_blocks  List of inner blocks (of this same class).
param: string $inner_html    Resultant HTML from inside block comment delimiters after removing inner blocks.
param: array  $inner_content List of string fragments and null markers where inner blocks were found.



Generated : Sun Apr 28 08:20:02 2024 Cross-referenced by PHPXref