WC_Gateway_Paypal::get_instance
Returns the Singleton instance of this class.
Метод класса: WC_Gateway_Paypal{}
Хуков нет.
Возвращает
WC_Gateway_Paypal. The Singleton instance.
Использование
$result = WC_Gateway_Paypal::get_instance();
Код WC_Gateway_Paypal::get_instance() WC Gateway Paypal::get instance WC 11.0.1
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}