WooCommerce Multiple Email Recipients

Emails_Service implements Premium_Service, Registerable

Handle WooCommerce Emails with additional emails

Tags
author

Barn2 Plugins info@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

Interfaces

Premium_Service
Registerable

Properties

$emails_manager  : Fields_Manager
$plugin  : Plugin
$views_path  : mixed

Methods

__call()  : mixed
__construct()  : mixed
Abstract_Email_Provider constructor.
add_multiple_email_option()  : mixed
add_multiple_email_recipients()  : mixed
admin_email_addresses_field_type()  : mixed
admin_email_form_fields()  : array<string|int, mixed>
Filter the `$form_fields` array adding the extra field to the admin email pages
admin_email_recipients()  : string
Filter the list of recipients depending on the `$order` and `$email` objects
clean_settings()  : array<string|int, mixed>
Filter the `$settings` array of an email object unsetting all the fields that were not submitted (this is necessary because the additional recipients are dynamic fields that can be freely added or removed every time the settings are saved)
get_emails()  : mixed
get_interested_recipients()  : mixed
load_service()  : mixed
print_recipient_addon_field_template()  : mixed
register()  : mixed
get_admin_email_ids()  : mixed
get_customer_email_ids()  : mixed

Properties

Methods

__call()

public __call(mixed $name, mixed $arguments) : mixed
Parameters
$name : mixed
$arguments : mixed

add_multiple_email_option()

public add_multiple_email_option(mixed $options, mixed $email) : mixed
Parameters
$options : mixed
$email : mixed

add_multiple_email_recipients()

public add_multiple_email_recipients(mixed $params, WC_Email $email) : mixed
Parameters
$params : mixed
$email : WC_Email

admin_email_addresses_field_type()

public admin_email_addresses_field_type(mixed $key, mixed $data, mixed $email) : mixed
Parameters
$key : mixed
$data : mixed
$email : mixed

admin_email_form_fields()

Filter the `$form_fields` array adding the extra field to the admin email pages

public admin_email_form_fields(array<string|int, mixed> $form_fields) : array<string|int, mixed>
Parameters
$form_fields : array<string|int, mixed>

The array with all the form fields

Return values
array<string|int, mixed>

The filtered array of fields

admin_email_recipients()

Filter the list of recipients depending on the `$order` and `$email` objects

public admin_email_recipients(string $recipients, mixed $object, WC_Email $email) : string
Parameters
$recipients : string

A comma separated list of recipients

$object : mixed
$email : WC_Email

An email object

Return values
string

The filtered list of recipients

clean_settings()

Filter the `$settings` array of an email object unsetting all the fields that were not submitted (this is necessary because the additional recipients are dynamic fields that can be freely added or removed every time the settings are saved)

public clean_settings(array<string|int, mixed> $settings) : array<string|int, mixed>
Parameters
$settings : array<string|int, mixed>

The settings of the email page

Return values
array<string|int, mixed>

The filtered array

get_interested_recipients()

public get_interested_recipients(mixed $product_ids, mixed $email_id) : mixed
Parameters
$product_ids : mixed
$email_id : mixed

print_recipient_addon_field_template()

public print_recipient_addon_field_template() : mixed

get_customer_email_ids()

protected get_customer_email_ids() : mixed

        
On this page

Search results