WP_Block_Parser::next_token

SummerySummery

Scans the document from where we last left off and finds the next valid token to parse if it exists

Syntax

WP_Block_Parser::next_token()

DescriptionDescription

Returns the type of the find: kind of find, block information, attributes

ReturnReturn

(array)

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments
3.8.0 Introduced.
Scroll to Top