MailPoet\EmailEditor\Engine\PersonalizationTags
HTML_Tag_Processor::replace_token()
Replaces the token with the new content.
Method of the class: HTML_Tag_Processor{}
No Hooks.
Return
null
. Nothing (null).
Usage
$HTML_Tag_Processor = new HTML_Tag_Processor(); $HTML_Tag_Processor->replace_token( $new_content ): void;
- $new_content(string) (required)
- The new content to replace the token.
HTML_Tag_Processor::replace_token() HTML Tag Processor::replace token code WC 9.8.1
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 ); }