WordPress at Your Fingertips
function is not described

WC_Emails::instance() public WC 2.1

Main WC_Emails Instance.

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

{} It's a method of the class: WC_Emails{}

No Hooks.

Return

WC_Emails. Main instance

Usage

$result = WC_Emails::instance();

Changelog

Since 2.1 Introduced.

Code of WC_Emails::instance() WC 5.7.1

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