abstract class Email extends WC_Email
An abstract class for mandating essential parts of the \WC_Email, and implementing email set-up and sending.
Properties
| static protected bool | $_constructed |
Methods
Abstract: mandate email ID field.
Abstract: mandate email method title field (appears in WC settings).
Abstract: mandate email description field (appears in WC settings)
Abstract: mandate email heading field.
Abstract: mandate email subject field.
Abstract: mandate email HTML template field.
Email contructor. Set mandatory properties.
The WooCommerce 'woocommerce_mail_content' action hook. Supply the find/replace functionality.
A function for aliasing the email action hook set in the constructor.
An empty function for optionally setting up the email placeholders.
A placeholder function for setting the recipient.
The WC email 'trigger' function expected.
Get content html using WooCommerce template functions.
Details
at line 33
abstract static string
email_id()
Abstract: mandate email ID field.
at line 40
abstract static string
email_title()
Abstract: mandate email method title field (appears in WC settings).
at line 47
abstract static string
email_description()
Abstract: mandate email description field (appears in WC settings)
at line 54
abstract static string
email_heading()
Abstract: mandate email heading field.
at line 61
abstract static string
email_subject()
Abstract: mandate email subject field.
at line 68
abstract static string
email_html_template()
Abstract: mandate email HTML template field.
at line 73
__construct()
Email contructor. Set mandatory properties.
at line 100
final string
_woocommerce_mail_content(string $content)
The WooCommerce 'woocommerce_mail_content' action hook. Supply the find/replace functionality.
at line 109
final static
send_email(mixed $object)
A function for aliasing the email action hook set in the constructor.
at line 118
set_placeholders()
An empty function for optionally setting up the email placeholders.
at line 123
set_recipient()
A placeholder function for setting the recipient.
at line 130
final
trigger(mixed $object)
The WC email 'trigger' function expected.
at line 147
final string
get_content_html()
Get content html using WooCommerce template functions.