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 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘getSubscribers() function does not work anymore?’ is closed to new replies.