WP_HTML_Text_Replacement::__construct( int $start, int $length, string $text )

In this article

Constructor.

Parameters

$startintrequired
Byte offset into document where replacement span begins.
$lengthintrequired
Byte length of span in document being replaced.
$textstringrequired
Span of text to insert in document to replace existing content from start to end.

Source

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

Changelog

VersionDescription
6.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.