=' ); if ( ! $minimum_woocommerce_active ) { return false; } return true; } /** * This is our constructor, which is private to force the use of get_instance() * * @return void */ private function __construct() { self::$analytics = new Jetpack_WooCommerce_Analytics_Universal(); self::$myaccount = new Jetpack_WooCommerce_Analytics_My_Account(); } /** * Function to instantiate our class and make it a singleton */ public static function get_instance() { if ( ! self::should_track_store() ) { return; } if ( ! self::$instance ) { self::$instance = new self(); } return self::$instance; } } global $jetpack_woocommerce_analytics; $jetpack_woocommerce_analytics = Jetpack_WooCommerce_Analytics::get_instance();