- Implementsi tracking clicks & redirecting URLs
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
namespace MailPoet\Config;
|
||||
|
||||
use MailPoet\Cron\Daemon;
|
||||
use MailPoet\Statistics\Track\Clicks;
|
||||
use MailPoet\Util\Helpers;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
@ -37,6 +38,14 @@ class PublicAPI {
|
||||
}
|
||||
}
|
||||
|
||||
function track() {
|
||||
try {
|
||||
$clicks = new Clicks($this->data);
|
||||
$clicks->track();
|
||||
} catch(\Exception $e) {
|
||||
}
|
||||
}
|
||||
|
||||
private function _checkAndCallMethod($class, $method, $terminate_request = false) {
|
||||
if(!method_exists($class, $method)) {
|
||||
if(!$terminate_request) return;
|
||||
|
Reference in New Issue
Block a user