Class WC_Emails
Transactional Emails Controller
WooCommerce Emails Class which handles the sending on transactional emails and email templates. This class loads in available emails.
Category: Class
Author: WooThemes
Version: 2.3.0
Class: WC_Emails
Located at class-wc-emails.php
Methods summary
public static
|
|
public
|
|
public
|
|
public static
|
|
public static
|
#
queue_transactional_email( )
Queues transactional email so it's not sent in current request if enabled, otherwise falls back to send now. |
public
|
|
public
|
|
public
array
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
string
|
#
email_footer_replace_site_title( string $string )
Filter callback to replace {site_title} in email footer |
public
string
|
#
wrap_message( string $email_heading, string $message, boolean $plain_text = false )
Wraps a message in the woocommerce mail template. |
public
boolean
|
|
public
|
#
customer_invoice( integer|
Prepare and send the customer invoice email on demand. |
public
|
#
customer_new_account( integer $customer_id, array $new_customer_data = array(), boolean $password_generated = false )
Customer new account welcome email. |
public
|
#
order_details(
Show the order details table |
public
|
#
order_downloads(
Show order downloads in a table. |
public
|
#
order_meta( mixed $order, boolean $sent_to_admin = false, boolean $plain_text = false )
Add order meta to email templates. |
public
boolean
|
|
public
string
|
#
customer_details(
Allows developers to add additional customer details to templates. |
public
|
#
email_addresses(
Get the email addresses. |
public
|
|
public
|
|
public
|
|
public
|
#
order_schema_markup( mixed $order, boolean $sent_to_admin = false, boolean $plain_text = false )
Adds Schema.org markup for order in JSON-LD format. |
Properties summary
public
array
|
$emails
Array of email notification classes |
|
protected static
|
$_instance
The single instance of the class |
#
null
|
protected static
|
$background_emailer
Background emailer class. |