getSubscribers() function does not work anymore?
-
After updating MailPoet we got an error – what should we do here?
MailPoet 5.7.1/5.8.0
Here is the source code:
if (class_exists(\MailPoet\API\API::class)) {
$mailpoet_api = \MailPoet\API\API::MP('v1');
}
try {
$fil=array(
'status'=>'subscribed',
'listId'=>$listid
);
$subscribers = $mailpoet_api->getSubscribers($fil,500);
} catch (\Exception $e) {
echo 'error';
}
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.