WC_Payment_Gateways::instance()public staticWC 2.1

Main WC_Payment_Gateways Instance.

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

Method of the class: WC_Payment_Gateways{}

No Hooks.

Return

WC_Payment_Gateways. Main instance

Usage

$result = WC_Payment_Gateways::instance();

Changelog

Since 2.1 Introduced.

WC_Payment_Gateways::instance() code WC 8.7.0

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