WC_Gateway_Paypal::get_instancepublic staticWC 1.0

Returns the Singleton instance of this class.

Method of the class: WC_Gateway_Paypal{}

No Hooks.

Returns

WC_Gateway_Paypal. The Singleton instance.

Usage

$result = WC_Gateway_Paypal::get_instance();

WC_Gateway_Paypal::get_instance() code WC 10.4.3

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