WC_Payment_Gateways::instance
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.
Returns
WC_Payment_Gateways. Main instance
Usage
$result = WC_Payment_Gateways::instance();
Changelog
| Since 2.1 | Introduced. |
WC_Payment_Gateways::instance() WC Payment Gateways::instance code WC 10.8.1
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}