Replaces the current token.
Parameters
$textstringrequired- Text to replace with.
Source
public function replace( string $text ): void {
$span = $this->get_span();
$this->lexical_updates[] = new WP_HTML_Text_Replacement( $span->start, $span->length, $text );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.