WC_Gateway_Paypal::get_instance
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() 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;
}