How get “Subscribe in registration form” list ids from MailPoet settings
-
Hello,
I’m developing a plugin for registration forms and I’ve nearly managed everything to let the new user be subscribed on the lists by adding your checkbox on the form.
The only thing I can’t get is the “Subscribe in registration form” lists, for now I can only get all the lists with this code:// Get available list to subscribe the subscriber $lists = $mailpoet_api->getLists(); $list_ids = array(); if (is_array($lists)) { foreach ($lists as $ids) { $list_ids[] = $ids['id']; } }
But the user will be added to all the lists, I need it will be added only to the selected ones.
Hope you can help me,
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How get “Subscribe in registration form” list ids from MailPoet settings’ is closed to new replies.