WP_HTML_Text_Replacement::__construct
Constructor.
Метод класса: WP_HTML_Text_Replacement{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_HTML_Text_Replacement = new WP_HTML_Text_Replacement(); $WP_HTML_Text_Replacement->__construct( $start, $length, $text );
- $start(int) (обязательный)
- Byte offset into document where replacement span begins.
- $length(int) (обязательный)
- Byte length of span in document being replaced.
- $text(строка) (обязательный)
- Span of text to insert in document to replace existing content from start to end.
Список изменений
| С версии 6.2.0 | Введена. |
Код WP_HTML_Text_Replacement::__construct() WP HTML Text Replacement:: construct WP 7.1.1
public function __construct( int $start, int $length, string $text ) {
$this->start = $start;
$this->length = $length;
$this->text = $text;
}