Add ensure unsubscribe link method to newsletters links

[MAILPOET-2245]
This commit is contained in:
Rostislav Wolny
2019-09-30 15:37:25 +02:00
committed by Jack Kitterhing
parent 2518e4d56b
commit 028c5e6de5
3 changed files with 48 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ namespace MailPoet\Models;
*/
class NewsletterLink extends Model {
public static $_table = MP_NEWSLETTER_LINKS_TABLE;
const UNSUBSCRIBE_LINK_SHORT_CODE = '[link:subscription_unsubscribe_url]';
/**
* @param Newsletter $newsletter