Server IP : 172.67.158.161 / Your IP : 18.219.198.150 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/giankuin/thietke365.net/wp-content/plugins/mailpoet/lib/Util/Notices/ |
Upload File : |
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing namespace MailPoet\Util\Notices; if (!defined('ABSPATH')) exit; use MailPoet\Util\Helpers; use MailPoet\WP\Functions as WPFunctions; use MailPoet\WP\Notice; class ChangedTrackingNotice { const OPTION_NAME = 'mailpoet-changed-tracking-settings-notice'; /** @var WPFunctions */ private $wp; public function __construct( WPFunctions $wp ) { $this->wp = $wp; } public function init($shouldDisplay) { if ($shouldDisplay && $this->wp->getTransient(self::OPTION_NAME)) { return $this->display(); } return null; } public function display() { $text = __('Email open and click tracking is now enabled. You can change how MailPoet tracks your subscribers in [link]Settings[/link]', 'mailpoet'); $text = Helpers::replaceLinkTags($text, 'admin.php?page=mailpoet-settings#advanced'); $extraClasses = 'mailpoet-dismissible-notice is-dismissible'; return Notice::displayWarning($text, $extraClasses, self::OPTION_NAME); } public function disable() { $this->wp->deleteTransient(self::OPTION_NAME); } }