-
Notifications
You must be signed in to change notification settings - Fork 0
/
zu-plus.php
37 lines (31 loc) · 1.24 KB
/
zu-plus.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/*
Plugin Name: Zu Plus
Plugin URI: https://github.com/picasso/zu-plus
GitHub Plugin URI: https://github.com/picasso/zu-plus
Description: Supports development with the Zukit framework and implements various debugging methods and other service functions.
Version: 2.2.3
Author: Dmitry Rudakov
Author URI: https://github.com/picasso
Text Domain: zu-plus
Domain Path: /lang/
Requires at least: 5.3.0
Requires PHP: 7.4.1
*/
// Prohibit direct script loading
defined('ABSPATH') || die('No direct script access allowed!');
// Always load Zukit even if we don't use it later ('wp_doing_ajax' or 'wp_doing_cron')
// as other plugins or themes may want to use it
require_once('zukit/load.php');
// Exit early if a WordPress heartbeat comes
if(wp_doing_ajax() && isset($_POST['action']) && ($_POST['action'] === 'heartbeat')) return;
// Let's not load plugin during cron events
if(wp_doing_cron()) return;
// Start! ---------------------------------------------------------------------]
// compatibility check for Zukit
if(Zukit::is_compatible(__FILE__, array('min_php' => '7.4.1') )) {
require_once('includes/zuplus-plugin.php');
zuplus(__FILE__);
}
// Hides the internal actions of Query Monitor in the output info from the plugin itself
define('QM_HIDE_SELF', true);