/** * Return an instance of this class. * * @since 1.0.0 * * @return object A single instance of this class. */ public static function get_instance() { // If the single instance hasn't been set, set it now. if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
public function init() { Stripe_Checkout_Pro_Licenses::get_instance(); Stripe_Checkout_Scripts::get_instance(); Stripe_Checkout_Shortcodes::get_instance(); if (is_admin()) { Stripe_Checkout_Admin::get_instance(); Stripe_Checkout_Pro_Admin::get_instance(); //Stripe_Checkout_Upgrade_Link::get_instance(); Stripe_Checkout_Notices::get_instance(); Stripe_Checkout_System_Status::get_instance(); } else { Stripe_Checkout_Misc::get_instance(); } // Need to leave outside of is_admin check or the AJAX will not work properly Stripe_Checkout_Pro_Functions::get_instance(); }