$instance
$instance : mixed
Private static variable to hold the single instance of the class.
Class MainWP_Notification_Settings
render_all_settings(boolean $updated)
Render all email settings options.
Credits.
Plugin-Name: WooCommerce. Plugin URI: https://woocommerce.com/. Author: Automattic. Author URI: https://woocommerce.com. License: GPLv3 or later.
boolean | $updated | True if page loaded after update, false if not. |
render_edit_settings(string $type, boolean $updated_templ)
Render email settings page.
Credits.
Plugin-Name: WooCommerce. Plugin URI: https://woocommerce.com/. Author: Automattic. Author URI: https://woocommerce.com. License: GPLv3 or later.
string | $type | Email notification type. |
boolean | $updated_templ | True if page loaded after update, false if not. |
get_default_emails_fields(string $type, string $field = '', boolean $general = false) : array|string
Get default email notifications values.
string | $type | Email type. |
string | $field | Field name. |
boolean | $general | General or individual site settings. |
Email field settings value.
replace_tokens_for_settings(array $options, array $fields, object $website) : array
Replace site tokens for settings.
array | $options | array of fields to find and replace tokens. |
array | $fields | fields names to find. |
object | $website | The website. |
$options array of fields.