Properties

$email_templates

$email_templates : array

Type

normal

$path_by_slug

$path_by_slug : array

Type

normal

$attachments

$attachments : array

Type

normal

$headers

$headers : string

Type

normal

$subject

$subject : string

Type

normal

$message

$message : string

Type

normal

Methods

__construct()

__construct() : mixed

Mail constructor.

Returns

mixed

mandrill_nl2br()

mandrill_nl2br( $nl2br, string  $message = '') : bool

Mandrill compatibility

Parameters

$nl2br
string $message

Returns

bool

init_paths()

init_paths() : mixed

Init paths for email notifications.

Returns

mixed

get_blog_id()

get_blog_id() : string

Check blog ID on multisite, return '' if single site.

Returns

string

locate_template()

locate_template(string  $template_name) : string

Locate a template and return the path for inclusion.

Parameters

string $template_name

Returns

string

get_email_template()

get_email_template( $slug,  $args = array()) : bool|string

Parameters

$slug
$args

Returns

bool|string

prepare_template()

prepare_template(string  $slug, array  $args = array()) : mixed|string

Prepare email template to send.

Parameters

string $slug
array $args

Returns

mixed|string

send()

send(string  $email, null  $template, array  $args = array()) : mixed

Send Email function

Parameters

string $email
null $template
array $args

Returns

mixed

get_template_filename()

get_template_filename( $template_name) : mixed|void

Parameters

$template_name

Returns

mixed|void

template_in_theme()

template_in_theme(string  $template_name) : string

Locate a template and return the path for inclusion.

Parameters

string $template_name

Returns

string

get_template_file()

get_template_file(string  $location, string  $template_name) : string

Method returns an expected path for template

Parameters

string $location
string $template_name

Returns

string

copy_email_template()

copy_email_template(string  $template) : bool

Copy template to the theme.

Parameters

string $template

Returns

bool

add_placeholder()

add_placeholder(array  $placeholders) : array

UM Placeholders for site url, admin email, submit registration.

Parameters

array $placeholders

Returns

array

add_replace_placeholder()

add_replace_placeholder(array  $replace_placeholders) : array

UM Replace Placeholders for site url, admin email, submit registration.

Parameters

array $replace_placeholders

Returns

array