PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.5.4
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.5.4
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / team-updraft / lib-onboarding-wizard / Wizard / RestResponse / RestResponse.php

RestResponse.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.5.4, at vendor/team-updraft/lib-onboarding-wizard/Wizard/RestResponse/RestResponse.php

31 lines 679 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Updraftplus\Wp_Optimize\Wizard\RestResponse;
3
4 defined( 'ABSPATH' ) | die();
5
6 class RestResponse {
7
8 public string $message = 'You do not have permission to perform this action.';
9 public bool $success = false;
10 public bool $request_success = true;
11 public array $data = [];
12
13 /**
14 * Get the response object
15 *
16 * @return array{
17 * message: string,
18 * success: bool,
19 * request_success: bool,
20 * }
21 */
22 public function get(): array {
23 return [
24 'message' => $this->message,
25 'success' => $this->success,
26 'request_success' => $this->request_success,
27 'data' => $this->data,
28 ];
29 }
30 }
31