WC_Emails::instance()public staticWC 2.1

Main WC_Emails Instance.

Ensures only one instance of WC_Emails is loaded or can be loaded.

Method of the class: WC_Emails{}

No Hooks.

Return

WC_Emails. Main instance

Usage

$result = WC_Emails::instance();

Changelog

Since 2.1 Introduced.

WC_Emails::instance() code WC 9.4.2

public static function instance() {
	if ( is_null( self::$_instance ) ) {
		self::$_instance = new self();
	}
	return self::$_instance;
}