WP_Block_Processor::get_last_error(): string|null

In this article

Indicates if the last attempt to parse a block comment delimiter failed, if set, otherwise null if the last attempt succeeded.

Return

string|null Error from last attempt at parsing next block delimiter, or null if last attempt succeeded.

Source

public function get_last_error(): ?string {
	return $this->last_error;
}

Changelog

VersionDescription
6.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.