WP_HTML_Span::__construct()publicWP 6.2.0

Constructor.

Method of the class: WP_HTML_Span{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_HTML_Span = new WP_HTML_Span();
$WP_HTML_Span->__construct( $start, $length );
$start(int) (required)
Byte offset into document where replacement span begins.
$length(int) (required)
Byte length of span.

Changelog

Since 6.2.0 Introduced.

WP_HTML_Span::__construct() code WP 6.7.1

public function __construct( int $start, int $length ) {
	$this->start  = $start;
	$this->length = $length;
}