Skip to content

Instantly share code, notes, and snippets.

@tribulant
Created December 7, 2016 10:48
Show Gist options
  • Save tribulant/34a391bde916cc46beb7375f38b77efc to your computer and use it in GitHub Desktop.
Save tribulant/34a391bde916cc46beb7375f38b77efc to your computer and use it in GitHub Desktop.
Subscribers per Mailing List
<?php
global $SubscribersList;
$list_id = 3; // replace this with the ID of the mailing list
$count = $SubscribersList -> count(array('list_id' => $list_id));
echo 'There are ' . $count . ' subscribers in this mailing list.';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment