Automattic\WooCommerce\EmailEditor\Engine\PersonalizationTags
HTML_Tag_Processor::replace_token
Replaces the token with the new content.
Метод класса: HTML_Tag_Processor{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$HTML_Tag_Processor = new HTML_Tag_Processor(); $HTML_Tag_Processor->replace_token( $new_content ): void;
- $new_content(строка) (обязательный)
- The new content to replace the token.
Код HTML_Tag_Processor::replace_token() HTML Tag Processor::replace token WC 10.4.3
public function replace_token( string $new_content ): void {
$this->set_bookmark( 'here' );
$here = $this->bookmarks['here'];
$this->deferred_updates[] = new WP_HTML_Text_Replacement(
$here->start,
$here->length,
$new_content
);
}