Method |
Description |
|
__clone ( ) |
Cloning is forbidden. |
|
__construct ( ) |
Constructor for the email class hooks in all emails that can be sent. |
|
__wakeup ( ) |
Unserializing instances of this class is forbidden. |
|
backorder ( array $args ) |
Backorder notification email. |
|
customer_detail_field_is_valid ( array $field ) : boolean |
Is customer detail field valid? |
|
customer_details ( mixed $order, boolean $sent_to_admin = false, boolean $plain_text = false ) : string |
Add customer details to email templates. |
|
customer_invoice ( $order ) |
Prepare and send the customer invoice email on demand. |
|
customer_new_account ( integer $customer_id, array $new_customer_data = [], $password_generated = false ) |
Customer new account welcome email. |
|
email_addresses ( $order, $sent_to_admin = false, $plain_text = false ) |
Get the email addresses. |
|
email_footer ( ) |
Get the email footer. |
|
email_header ( mixed $email_heading ) |
Get the email header. |
|
get_emails ( ) : array |
Return the email classes - used in admin to load settings. |
|
get_from_address ( ) : string |
Get from email address. |
|
get_from_name ( ) : string |
Get from name for email. |
|
init ( ) |
Init email classes. |
|
init_transactional_emails ( ) |
Hook in all transactional emails. |
|
instance ( ) : WC_Emails |
Main WC_Emails Instance. |
|
low_stock ( WC_Product $product ) |
Low stock notification email. |
|
no_stock ( WC_Product $product ) |
No stock notification email. |
|
order_details ( $order, $sent_to_admin = false, $plain_text = false, $email = '' ) |
Show the order details table |
|
order_meta ( mixed $order, boolean $sent_to_admin = false, boolean $plain_text = false ) : string |
Add order meta to email templates. |
|
order_schema_markup ( mixed $order, boolean $sent_to_admin = false, boolean $plain_text = false ) |
Adds Schema.org markup for order in JSON-LD format. |
|
send ( mixed $to, mixed $subject, mixed $message, string $headers = "Content-Type: text/html
", string $attachments = "" ) : boolean |
Send the email. |
|
send_transactional_email ( ) |
Init the mailer instance and call the notifications for the current filter. |
|
wrap_message ( mixed $email_heading, string $message, $plain_text = false ) : string |
Wraps a message in the woocommerce mail template. |
|