$templates
$templates : array
Array of templates.
Used to cache templates after they were first requested.
Class representing the email templates
get_template(string $template_name) : \O3PO_ShortcodeTemplate
Get a template by name.
string | $template_name | The name of the template. |
The requested template.
expand(string $template_name, array $replacements, boolean $error_if_not_all_appearing_specified = true) : string
Expand a email template and return the resulting text.
string | $template_name | The name of the template. |
array | $replacements | Array of replacements for all or a subset of the shotcodes in the template. |
boolean | $error_if_not_all_appearing_specified | Whether to throw an exception in case not for all shortcodes appearing in the template replacements are specified. |
Expanded template with shortcodes replaced by replacements.
specify_settings(\O3PO_Settings $settings)
Specifies class specific settings sections and fields.
To be called from O3PO_Settings::configure().
\O3PO_Settings | $settings | Settings object. |