public function get_mc_api() { if (!isset(self::$mc_api)) { // Only load MailChimp API if it has not been loaded yet // other plugins may have already at this point. if (!class_exists("MCAPI")) { require_once 'class-MCAPI.php'; } self::$mc_api = new MCAPI($this->options['mailchimp_api_key']); } return self::$mc_api; }