Mailpoet subscribers cannot be put into trash
-
Hi,
I have imported a lot of subscribers into mailpoet
They all ended up with wp_user_id = 0
This results in a problem, because the code checks for a value !==NULL
So you cannot put the subscriber into the trash
I altered the code in subscriber.php to
function isWPUser() {
$wpuser = $this->wp_user_id ;
error_log($wpuser);
if ($wpuser == 0) {
return false;
}
else {
return ($this->wp_user_id !== null);
}
}
Now the subscriber can be trashed.
I suspect the import creates a value “0”
Regards,
Peter
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Mailpoet subscribers cannot be put into trash’ is closed to new replies.