/** * Returns the number of subscribers on the selected lists (for the form context) * * @return int */ public function get_subscriber_count() { $mailchimp = new MC4WP_MailChimp(); $count = $mailchimp->get_subscriber_count($this->integration->get_lists()); return number_format($count); }
/** * @param MC4WP_Integration $integration * @param string $email * @param array $data * @param int $related_object_id * * @return false|int */ public function log_integration_request(MC4WP_Integration $integration, $email, $data, $related_object_id = 0) { return $this->add($email, $integration->get_lists(), $data, $integration->slug, $related_object_id, MC4WP_Request::create_from_globals()->get_referer()); }