PluginProbe
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript / 4.0.30
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript v4.0.30
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 4.0.30, at inc/thirdparty/plugin/AdminSiteEnhancements.php

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