-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
wp-crontrol.php
59 lines (52 loc) · 1.75 KB
/
wp-crontrol.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* Plugin Name: WP Crontrol
* Plugin URI: https://wp-crontrol.com
* Description: Take control of the cron events on your WordPress website.
* Author: John Blackbourn
* Author URI: https://wp-crontrol.com
* Version: 1.17.0
* Text Domain: wp-crontrol
* Domain Path: /languages/
* Requires at least: 5.9
* Requires PHP: 7.4
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* License: GPL v2 or later
*
* LICENSE
* This file is part of WP Crontrol.
*
* WP Crontrol is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* @package wp-crontrol
* @author John Blackbourn & Edward Dale
* @copyright Copyright 2008 Edward Dale, 2012-2024 John Blackbourn
* @license https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt GPL 2.0
* @link https://github.com/johnbillion/wp-crontrol/
*/
namespace Crontrol;
const PLUGIN_FILE = __FILE__;
const WP_CRONTROL_VERSION = '1.17.0';
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! version_compare( PHP_VERSION, '7.4', '>=' ) ) {
return;
}
if ( ! file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
return;
}
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/src/bootstrap.php';
require_once __DIR__ . '/src/event.php';
require_once __DIR__ . '/src/schedule.php';
// Get this show on the road.
init_hooks();