PluginProbe
Extendify / 3.1.5
Extendify v3.1.5
3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 All 126 releases
extendify / app / PluginNotifications / Controllers / NotificationsController.php

NotificationsController.php in Extendify 3.1.5, at app/PluginNotifications/Controllers/NotificationsController.php

24 lines 557 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Extendify\PluginNotifications\Controllers;
4
5 defined('ABSPATH') || die('No direct access.');
6
7 use Extendify\PluginNotifications\Admin;
8
9 class NotificationsController
10 {
11 public static function dismiss(\WP_REST_Request $request)
12 {
13 $id = sanitize_text_field($request->get_param('id'));
14 Admin::dismissNotice($id);
15 return new \WP_REST_Response(['success' => true]);
16 }
17
18 public static function dismissAll()
19 {
20 Admin::dismissAll();
21 return new \WP_REST_Response(['success' => true]);
22 }
23 }
24