WP_HTML_Tag_Processor::__constructpublicWP 6.2.0

Constructor.

Method of the class: WP_HTML_Tag_Processor{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WP_HTML_Tag_Processor = new WP_HTML_Tag_Processor();
$WP_HTML_Tag_Processor->__construct( $html );
$html(string) (required)
HTML to process.

Changelog

Since 6.2.0 Introduced.

WP_HTML_Tag_Processor::__construct() code WP 6.9

public function __construct( $html ) {
	if ( ! is_string( $html ) ) {
		_doing_it_wrong(
			__METHOD__,
			__( 'The HTML parameter must be a string.' ),
			'6.9.0'
		);
		$html = '';
	}
	$this->html = $html;
}