Emails implements Registerable, Standard_Service
General Email Functions
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
Table of Contents
- $template_directory : string
- The template directory.
- __construct() : mixed
- Constructor.
- init_wc_emails() : mixed
- We need to initialise this seperately in order to over the wp_new_user_notification email (load order!).
- register() : mixed
- {@inheritdoc}
- register_email_actions() : array<string|int, mixed>
- Register the actions which trigger the mails
- register_email_classes() : array<string|int, WC_Email>
- Registers the wholesale emails with WooCommercer
Properties
$template_directory
The template directory.
private
string
$template_directory
Tags
Methods
__construct()
Constructor.
public
__construct(string $template_directory) : mixed
Parameters
- $template_directory : string
Tags
Return values
mixed —init_wc_emails()
We need to initialise this seperately in order to over the wp_new_user_notification email (load order!).
public
init_wc_emails(WP_Screen $current_screen) : mixed
Parameters
- $current_screen : WP_Screen
Tags
Return values
mixed —register()
{@inheritdoc}
public
register() : mixed
Tags
Return values
mixed —register_email_actions()
Register the actions which trigger the mails
public
register_email_actions(array<string|int, mixed> $actions) : array<string|int, mixed>
Parameters
- $actions : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —$new_actions
register_email_classes()
Registers the wholesale emails with WooCommercer
public
register_email_classes(array<string|int, WC_Email> $email_classes) : array<string|int, WC_Email>
Parameters
- $email_classes : array<string|int, WC_Email>
Tags
Return values
array<string|int, WC_Email> —$email_classes