Modification to allow adding to lists
-
Hi, not much of a code (thus I am not into figuring out submitting this suggestion through svn), but I would really appreciate if you can include into your great plugin the following modifications, which will:
1. put a proper recognizable name at the GF menu
2. allow for already subscribed people to be added to new lists.Change file
class-gfnewmailpoetaddon.php
as follows
1. Line 12: change toprotected $_short_title = 'Mailpoet';
2. Substitute lines 109 – 112 by the following:try { $subscriber_data = \MailPoet\API\API::MP('v1')->addSubscriber($subscriber_data, $mailpoetlists); } catch(Exception $exception) { if ( 'This subscriber already exists.' == $exception->getMessage() ){ try { $subscriber = \MailPoet\API\API::MP('v1')->subscribeToLists($subscriber_data['email'], $mailpoetlists); } catch(Exception $exception) { // log error } } else { // log error } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Modification to allow adding to lists’ is closed to new replies.