PluginProbe
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript / 1.9.3
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript v1.9.3
4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.0.30 4.0.29 4.0.28 4.0.27 4.0.26 4.0.24 4.0.25 4.0.23 4.0.22 4.0.21 4.0.19 4.0.18 4.0.17 4.0.16 1.9.3 1.9.4 1.9.5 1.9.6 All 170 releases
searchpro / inc / thirdparty / plugin / AdminSiteEnhancements.php

AdminSiteEnhancements.php in BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript 1.9.3, at inc/thirdparty/plugin/AdminSiteEnhancements.php

29 lines 780 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class AdminSiteEnhancements extends berqIntegrations
4 {
5 function __construct()
6 {
7 add_action('admin_notices', [$this, 'restapi_error']);
8 }
9
10 function restapi_error()
11 {
12 if (!defined('ASENHA_SLUG_U')) {
13 return;
14 }
15
16 $options = get_option(ASENHA_SLUG_U, []);
17
18 if (array_key_exists('disable_rest_api', $options) && $options['disable_rest_api']) {
19 ?>
20 <div class="notice notice-error">
21 <p><strong>Error:</strong> The WordPress REST API is disabled. BerqWP plugin will not function correctly without the
22 REST API. Please enable the REST API for full functionality.</p>
23 </div>
24 <?php
25 }
26 }
27 }
28
29 new AdminSiteEnhancements();