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
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;
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.1 | Introduced. |