# acymailing/10.2.2/back/Controllers/UpdateController.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 10.2.2. 24 lines.

- Page: https://pluginprobe.com/plugins/acymailing/10.2.2/code/back/Controllers/UpdateController.php
- Raw: https://pluginprobe.com/plugins/acymailing/10.2.2/raw/back/Controllers/UpdateController.php
- Modified: 2025-03-03T13:35:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/10.2.2/code/back/Controllers/UpdateController.php#L10-L20`.

```php
<?php

namespace AcyMailing\Controllers;

use AcyMailing\Helpers\HeaderHelper;
use AcyMailing\Core\AcymController;

class UpdateController extends AcymController
{
    public function checkForNewVersion(): void
    {
        $lastLicenseCheck = acym_checkVersion(true);
        $headerHelper = new HeaderHelper();

        acym_sendAjaxResponse(
            '',
            [
                'content' => $headerHelper->checkVersionArea(true),
                'lastcheck' => acym_date($lastLicenseCheck, 'Y/m/d H:i'),
            ]
        );
    }
}

```
