Class WC_Email
Abstract Email Class
WooCommerce Email Class which is extended by specific email template classes to add emails to WooCommerce
- WC_Settings_API
- WC_Email
Direct known subclasses
WC_Email_Customer_Completed_Order
,
WC_Email_Customer_Invoice
,
WC_Email_Customer_New_Account
,
WC_Email_Customer_Note
,
WC_Email_Customer_Processing_Order
,
WC_Email_Customer_Reset_Password
,
WC_Email_New_Order
Package: WooCommerce\Abstracts
Category: Abstract Class
Author: WooThemes
Version: 2.0.0
Class: WC_Email
Extends: WC_Settings_API
Located at includes/abstracts/abstract-wc-email.php
Methods summary
public
|
|
public
PHPMailer
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
array
|
|
public
string
|
|
public
string
|
|
public
string
|
#
get_option( string $key, mixed $empty_value = null )
Proxy to parent's get_option and attempt to localize the result using gettext. |
public
boolean
|
|
public
string
|
|
public
string
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
|
#
init_form_fields( )
Initialise Settings Form Fields - these are generic email options most will use. |
public
boolean
|
|
public
|
Methods inherited from WC_Settings_API
display_errors()
,
format_settings()
,
generate_checkbox_html()
,
generate_decimal_html()
,
generate_multiselect_html()
,
generate_password_html()
,
generate_price_html()
,
generate_select_html()
,
generate_settings_html()
,
generate_text_html()
,
generate_textarea_html()
,
generate_title_html()
,
get_custom_attribute_html()
,
get_description_html()
,
get_form_fields()
,
get_tooltip_html()
,
init_settings()
,
validate_checkbox_field()
,
validate_decimal_field()
,
validate_multiselect_field()
,
validate_password_field()
,
validate_price_field()
,
validate_select_field()
,
validate_settings_fields()
,
validate_text_field()
,
validate_textarea_field()
Magic methods summary
Properties summary
public
string
|
$id |
#
Payment method ID. |
public
string
|
$title |
#
Payment method title. |
public
string
|
$enabled |
#
'yes' if the method is enabled. |
public
string
|
$description |
#
Description for the gateway. |
public
string
|
$template_plain |
#
plain text template path |
public
string
|
$template_html |
#
html template path |
public
string
|
$template_base |
#
template path |
public
string
|
$recipient |
#
recipients for the email |
public
string
|
$heading |
#
heading for the email content |
public
string
|
$subject |
#
subject for the email |
public
object
|
$object |
#
this email is for, for example a customer, product, or email |
public
array
|
$find |
#
strings to find in subjects/headings |
public
array
|
$replace |
#
strings to replace in subjects/headings |
public
string
|
$mime_boundary |
#
For multipart emails |
public
string
|
$mime_boundary_header |
#
For multipart emails |
public
boolean
|
$sending |
#
true when email is being sent |
public
array
|
$plain_search |
#
List of preg* regular expression patterns to search for, |
public
array
|
$plain_replace |
#
List of pattern replacements corresponding to patterns searched. |
Properties inherited from WC_Settings_API
$errors
,
$form_fields
,
$plugin_id
,
$sanitized_fields
,
$settings