| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: RabbitLoader |
| 5 |
* Plugin URI: https://rabbitloader.com |
| 6 |
* Author: RabbitLoader |
| 7 |
* Author URI: https://rabbitloader.com/ |
| 8 |
* Description: RabbitLoader can improve Google PageSpeed score and get you 100 out of 100 by improving the page load time to just a few milliseconds. It improves the Core Web Vitals score for your pages and boost PageSpeed score to help better search rankings and best the experience for your end user. |
| 9 |
* Version: 2.17.6 |
| 10 |
* Text Domain: rabbit-loader |
| 11 |
*/ |
| 12 |
/* |
| 13 |
RabbitLoader 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 any later version. */ |
| 14 |
|
| 15 |
defined( 'ABSPATH' ) or die( 'ABSPATH not defined' ); |
| 16 |
|
| 17 |
$plug_dir = dirname(__FILE__) . '/'; |
| 18 |
include_once($plug_dir.'autoload.php'); |
| 19 |
|
| 20 |
if (is_admin() ) { |
| 21 |
|
| 22 |
register_activation_hook( __FILE__, 'RabbitLoader_21_Admin::activate_advanced_cache'); |
| 23 |
register_deactivation_hook( __FILE__, 'RabbitLoader_21_Admin::plugin_deactivate'); |
| 24 |
register_uninstall_hook(__FILE__, 'RabbitLoader_21_Admin::plugin_uninstall'); |
| 25 |
add_filter( 'plugin_action_links_rabbit-loader/rabbit-loader.php', 'RabbitLoader_21_Admin::settings_link' ); |
| 26 |
|
| 27 |
if(!defined('RABBITLOADER_UNINSTALL_MODE')){ |
| 28 |
RabbitLoader_21_Admin::addActions(); |
| 29 |
} |
| 30 |
}else{ |
| 31 |
if(!defined('RABBITLOADER_AC_ACTIVE')){ |
| 32 |
//advance cache failed to work, as a fallback we can intercept requests here |
| 33 |
RabbitLoader_21_Public::process_incoming_request('fallback'); |
| 34 |
} |
| 35 |
RabbitLoader_21_Public::addActions(); |
| 36 |
} |
| 37 |
|
| 38 |
if(defined("WP_CLI") && WP_CLI){ |
| 39 |
include_once($plug_dir.'wp-cli.php'); |
| 40 |
} |
| 41 |
?> |