WP_HTML_Tag_Processor::__toStringpublicWP 6.2.0

Returns the string representation of the HTML Tag Processor.

Method of the class: WP_HTML_Tag_Processor{}

No Hooks.

Returns

string. The processed HTML.

Usage

$WP_HTML_Tag_Processor = new WP_HTML_Tag_Processor();
$WP_HTML_Tag_Processor->__toString(): string;

Notes

See: WP_HTML_Tag_Processor::get_updated_html()

Changelog

Since 6.2.0 Introduced.

WP_HTML_Tag_Processor::__toString() code WP 7.1

public function __toString(): string {
	return $this->get_updated_html();
}