WP_HTML_Tag_Processor::__construct │ public │ WP 6.2.0

Constructor.

Метод класса: WP_HTML_Tag_Processor{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_HTML_Tag_Processor = new WP_HTML_Tag_Processor();
$WP_HTML_Tag_Processor->__construct( $html );
$html(строка) (обязательный)
HTML to process.

Список изменений

С версии 6.2.0 Введена.

Код WP_HTML_Tag_Processor::__construct() WP 7.1.5

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;
}