WP_HTML_Text_Replacement::__construct()
Constructor.
Method of the class: WP_HTML_Text_Replacement{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_HTML_Text_Replacement = new WP_HTML_Text_Replacement(); $WP_HTML_Text_Replacement->__construct( $start, $length, $text );
- $start(int) (required)
- Byte offset into document where replacement span begins.
- $length(int) (required)
- Byte length of span in document being replaced.
- $text(string) (required)
- Span of text to insert in document to replace existing content from start to end.
Changelog
Since 6.2.0 | Introduced. |
WP_HTML_Text_Replacement::__construct() WP HTML Text Replacement:: construct code WP 6.6.2
public function __construct( $start, $length, $text ) { $this->start = $start; $this->length = $length; $this->text = $text; }