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

In this article

Constructor.

Parameters

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

Source

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

Changelog

VersionDescription
6.2.0Introduced.

User Contributed Notes

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