# extendify/3.1.5/app/PluginNotifications/Controllers/NotificationsController.php

Extendify, version 3.1.5. 24 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.5/code/app/PluginNotifications/Controllers/NotificationsController.php
- Raw: https://pluginprobe.com/plugins/extendify/3.1.5/raw/app/PluginNotifications/Controllers/NotificationsController.php
- Modified: 2026-03-19T19:35:18+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/extendify/3.1.5/code/app/PluginNotifications/Controllers/NotificationsController.php#L10-L20`.

```php
<?php

namespace Extendify\PluginNotifications\Controllers;

defined('ABSPATH') || die('No direct access.');

use Extendify\PluginNotifications\Admin;

class NotificationsController
{
    public static function dismiss(\WP_REST_Request $request)
    {
        $id = sanitize_text_field($request->get_param('id'));
        Admin::dismissNotice($id);
        return new \WP_REST_Response(['success' => true]);
    }

    public static function dismissAll()
    {
        Admin::dismissAll();
        return new \WP_REST_Response(['success' => true]);
    }
}

```
