| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: RabbitLoader |
| 4 |
* Plugin URI: https://rabbitloader.com/ |
| 5 |
* Description: RabbitLoader WordPress connection and performance dashboard. |
| 6 |
* Version: 4.0 |
| 7 |
* Author: Yogi Network |
| 8 |
* Author URI: https://rabbitloader.com/ |
| 9 |
* License: GPLv2 or later |
| 10 |
* Text Domain: rabbitloader |
| 11 |
*/ |
| 12 |
|
| 13 |
if (!defined('ABSPATH')) { |
| 14 |
exit; |
| 15 |
} |
| 16 |
|
| 17 |
define('RL5_VERSION', '4.0'); |
| 18 |
define('RL5_FILE', __FILE__); |
| 19 |
define('RL5_DIR', plugin_dir_path(__FILE__)); |
| 20 |
define('RL5_URL', plugin_dir_url(__FILE__)); |
| 21 |
|
| 22 |
require_once RL5_DIR . 'inc/class-rl-settings.php'; |
| 23 |
require_once RL5_DIR . 'inc/sdk/class-rl-api.php'; |
| 24 |
require_once RL5_DIR . 'inc/sdk/class-rl-entitlement.php'; |
| 25 |
require_once RL5_DIR . 'inc/class-rl-admin.php'; |
| 26 |
require_once RL5_DIR . 'inc/class-rl-heartbeat.php'; |
| 27 |
require_once RL5_DIR . 'inc/class-rl-runtime.php'; |
| 28 |
require_once RL5_DIR . 'inc/class-rl-plugin.php'; |
| 29 |
|
| 30 |
add_action('plugins_loaded', ['RL5_Plugin', 'init']); |
| 31 |
|
| 32 |
// Clear the heartbeat cron when the plugin is deactivated. |
| 33 |
register_deactivation_hook(__FILE__, ['RL5_Heartbeat', 'clear_cron']); |
| 34 |
|