8889841cclixcotz/tcchp.clix.co.tz/wp-content/plugins/mailpoet/lib/Util/Notices/DeprecatedFilterNotice.php 0000644 00000003045 15052173545 0030121 0 ustar 00 home wp = $wp;
}
public function init($shouldDisplay): ?Notice {
if ($shouldDisplay && !$this->wp->getTransient(self::OPTION_NAME) && $this->wp->hasFilter('mailpoet_mailer_smtp_transport_agent')) {
return $this->display();
}
return null;
}
public function display(): Notice {
$message = Helpers::replaceLinkTags(
__('The mailpoet_mailer_smtp_transport_agent filter no longer works. Please replace it with mailpoet_mailer_smtp_options. Read more in [link]documentation[/link].', 'mailpoet'),
'https://kb.mailpoet.com/article/193-tls-encryption-does-not-work',
['target' => '_blank']
);
$extraClasses = 'mailpoet-dismissible-notice is-dismissible';
return Notice::displayWarning($message, $extraClasses, self::OPTION_NAME);
}
public function disable(): void {
$this->wp->setTransient(self::OPTION_NAME, true, self::DISMISS_NOTICE_TIMEOUT_SECONDS);
}
}