WC_Payment_Gateways::instance()

Main WC_Payment_Gateways Instance.


Description Description

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


Return Return

(WC_Payment_Gateways) Main instance


Top ↑

Source Source

File: includes/class-wc-payment-gateways.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.1 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.