WooCommerce Code Reference

HTML_Tag_Processor extends WP_HTML_Tag_Processor
in package

Class based on WP_HTML_Tag_Processor which is extended to replace tokens with their values in the email content.

This class was inspired by a concept from the WordPress core, which could help us to avoid refactoring in the future.

Table of Contents

$deferred_updates  : array<string|int, WP_HTML_Text_Replacement>
List of deferred updates which will be replaced after calling flush_updates().
flush_updates()  : void
Flushes the deferred updates to the lexical updates.
replace_token()  : void
Replaces the token with the new content.

Properties

Methods