get_lists() публичный Метод

Get the selected MailChimp lists
public get_lists ( ) : array
Результат array Array of List ID's
 /**
  * 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);
 }
Пример #2
0
 /**
  * @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());
 }