WP_HTML_Processor::get_unsupported_exceptionpublicWP 6.7.0

Returns context for why the parser aborted due to unsupported HTML, if it did.

This is meant for debugging purposes, not for production use.

Method of the class: WP_HTML_Processor{}

No Hooks.

Returns

WP_HTML_Unsupported_Exception|null.

Usage

$WP_HTML_Processor = new WP_HTML_Processor();
$WP_HTML_Processor->get_unsupported_exception();

Notes

  • See: self::$unsupported_exception

Changelog

Since 6.7.0 Introduced.

WP_HTML_Processor::get_unsupported_exception() code WP 6.8.3

public function get_unsupported_exception() {
	return $this->unsupported_exception;
}