WP_Block_Parser::add_inner_block

SummerySummery

Given a block structure from memory pushes a new block to the output list.

Syntax

WP_Block_Parser::add_inner_block( WP_Block_Parser_Block $block, int $token_start, int $token_length, int|null $last_offset = null )

ParametersParameters

$block

(WP_Block_Parser_Block) (Required) The block to add to the output.

$token_start

(int) (Required) Byte offset into the document where the first token for the block starts.

$token_length

(int) (Required) Byte length of entire block from start of opening token to end of closing token.

$last_offset

(int|null) (Optional) Last byte offset into document if continuing form earlier output.

Default value: null

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
3.8.0 Introduced.
Scroll to Top