| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: WP Crontrol |
| 4 |
* Plugin URI: https://wp-crontrol.com |
| 5 |
* Description: Take control of the cron events on your WordPress website or WooCommerce store. |
| 6 |
* Author: John Blackbourn |
| 7 |
* Author URI: https://wp-crontrol.com |
| 8 |
* Version: 1.21.2 |
| 9 |
* Text Domain: wp-crontrol |
| 10 |
* Domain Path: /languages/ |
| 11 |
* Requires at least: 6.6 |
| 12 |
* Requires PHP: 7.4 |
| 13 |
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
| 14 |
* License: GPL v2 or later |
| 15 |
* |
| 16 |
* LICENSE |
| 17 |
* This file is part of WP Crontrol. |
| 18 |
* |
| 19 |
* WP Crontrol is free software; you can redistribute it and/or |
| 20 |
* modify it under the terms of the GNU General Public License |
| 21 |
* as published by the Free Software Foundation; either version 2 |
| 22 |
* of the License, or (at your option) any later version. |
| 23 |
* |
| 24 |
* This program is distributed in the hope that it will be useful, |
| 25 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 27 |
* GNU General Public License for more details. |
| 28 |
* |
| 29 |
* @package wp-crontrol |
| 30 |
* @author John Blackbourn & Edward Dale |
| 31 |
* @copyright Copyright 2008 Edward Dale, 2012-2026 John Blackbourn |
| 32 |
* @license https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt GPL 2.0 |
| 33 |
* @link https://github.com/johnbillion/wp-crontrol/ |
| 34 |
*/ |
| 35 |
|
| 36 |
namespace Crontrol; |
| 37 |
|
| 38 |
const PLUGIN_FILE = __FILE__; |
| 39 |
const WP_CRONTROL_VERSION = '1.21.2'; |
| 40 |
|
| 41 |
if ( ! defined( 'ABSPATH' ) ) { |
| 42 |
header( 'HTTP/1.1 403 Forbidden' ); |
| 43 |
exit; |
| 44 |
} |
| 45 |
|
| 46 |
// @phpstan-ignore booleanNot.alwaysFalse |
| 47 |
if ( ! version_compare( PHP_VERSION, '7.4', '>=' ) ) { |
| 48 |
return; |
| 49 |
} |
| 50 |
|
| 51 |
if ( ! file_exists( __DIR__ . '/vendor/autoload.php' ) ) { |
| 52 |
return; |
| 53 |
} |
| 54 |
|
| 55 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 56 |
require_once __DIR__ . '/src/bootstrap.php'; |
| 57 |
require_once __DIR__ . '/src/event.php'; |
| 58 |
require_once __DIR__ . '/src/schedule.php'; |
| 59 |
|
| 60 |
// Get this show on the road. |
| 61 |
init_hooks(); |
| 62 |
|