$instance
$instance : mixed
Private static variable to hold the single instance of the class.
Class MainWP_Notification_Template
get_template_html(string $template_name, array $args = array()) : string
Get template HTML.
Credits.
Plugin-Name: WooCommerce. Plugin URI: https://woocommerce.com/. Author: Automattic. Author URI: https://woocommerce.com. License: GPLv3 or later.
string | $template_name | Template name. |
array | $args | Arguments. (default: array). |
get_template(string $template_name, array $args = array()) : false|string|void
Get templates.
Credits.
Plugin-Name: WooCommerce. Plugin URI: https://woocommerce.com/. Author: Automattic. Author URI: https://woocommerce.com. License: GPLv3 or later.
string | $template_name | Template name. |
array | $args | Arguments. (default: array). |
save_template(string $template_code, string $template)
Save the email templates.
Credits.
Plugin-Name: WooCommerce. Plugin URI: https://woocommerce.com/. Author: Automattic. Author URI: https://woocommerce.com. License: GPLv3 or later.
string | $template_code | Template code. |
string | $template | Template. |
locate_template(string $template_name) : string
Locate a template and return the path for inclusion.
Credits.
Plugin-Name: WooCommerce. Plugin URI: https://woocommerce.com/. Author: Automattic. Author URI: https://woocommerce.com. License: GPLv3 or later.
string | $template_name | Template name. |