WP_Block_Parser::parse

SummerySummery

Parses a document and returns a list of block structures

Syntax

WP_Block_Parser::parse( string $document )

DescriptionDescription

When encountering an invalid parse will return a best-effort parse. In contrast to the specification parser this does not return an error on invalid inputs.

ParametersParameters

$document

(string) (Required) Input document being parsed.

ReturnReturn

(WP_Block_Parser_Block[])

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
3.8.0 Introduced.
Scroll to Top