Hi @gioiliop7
We do have a way to address this. We’re looking into it and will update you soon.
Hi @gioiliop7,
The line of code:
$subscribers = ES()->lists_contacts_db->get_contacts('all', 1);
This function retrieves a list of all subscribers with a status of all (including subscribed, unsubscribed, and other statuses) from list ID 1.
If you’d like to retrieve only the subscribed users, you can change 'all' to 'subscribed' like this:
$subscribers = ES()->lists_contacts_db->get_contacts('subscribed', 1);
Here are the available status options you can use:
'subscribed' – Only users who are currently subscribed.
'unsubscribed' – Users who have unsubscribed.
'unconfirmed' – Users who haven’t confirmed their subscription.
'confirmed' – Users who have confirmed their subscription.
'all' – All users, regardless of status.
You can place this code in your theme’s functions.php file or use it as part of a custom code snippet.
Let me know if you need further clarification or help implementing this!
Hi @gioiliop7,
Since the inquiry has been resolved, I’m closing this thread for now. If you have any further questions or issues related to the plugin, feel free to reopen it.
You can open a new thread from here. We will be happy to assist you further.
Thank you!
Hi @gioiliop7 ,
Since the inquiry has been resolved, I’m closing this thread for now. If you have any further questions or issues related to the plugin, feel free to reopen it.
You can open a new thread from here. We will be happy to assist you further.
Thank you!