WCWP_Email extends WC_Email

Extend WC_Emails to add our general requirements for customisation across all emails

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

$placeholders_desc  : array<string|int, mixed>
Placeholder descriptions
$template_directory  : string
The template directory.
__construct()  : mixed
Constructor.
admin_options()  : mixed
Admin Options.
get_body_content()  : string
Return content from the body_content field.
get_default_body_content()  : string
Default email content
handle_locate_core_template()  : string
Load our custom template as the core template for settings page
handle_locate_template()  : string
Locate our template for sending the mails
init_form_fields()  : mixed
Initialise settings form fields.
generate_merge_tags_list()  : mixed
Outputs a list of available merge tags.

Properties

$placeholders_desc

Placeholder descriptions

protected array<string|int, mixed> $placeholders_desc
Tags

$template_directory

The template directory.

protected string $template_directory
Tags

Methods

__construct()

Constructor.

public __construct() : mixed
Tags
Return values
mixed

admin_options()

Admin Options.

public admin_options() : mixed

We make a slight modification to the core admin options, so that the back link goes to our custom emails list

Tags
Return values
mixed

get_body_content()

Return content from the body_content field.

public get_body_content() : string
Tags
Return values
string

get_default_body_content()

Default email content

public get_default_body_content() : string
Tags
Return values
string

handle_locate_core_template()

Load our custom template as the core template for settings page

public handle_locate_core_template(string $file, string $template, string $template_base, string $template_id) : string
Parameters
$file : string
$template : string
$template_base : string
$template_id : string
Tags
Return values
string

$file

handle_locate_template()

Locate our template for sending the mails

public handle_locate_template(string $template, string $template_name, string $template_path) : string
Parameters
$template : string
$template_name : string
$template_path : string
Tags
Return values
string

$template

init_form_fields()

Initialise settings form fields.

public init_form_fields() : mixed
Tags
Return values
mixed

generate_merge_tags_list()

Outputs a list of available merge tags.

protected generate_merge_tags_list() : mixed
Tags
Return values
mixed

Search results