PluginProbe
RabbitLoader / 2.18.2
RabbitLoader v2.18.2
4.0.2 4.0.1 4.0 3.2.0 3.1.1 3.1.0 3.0.5 3.0.3 3.0.4 2.17.1 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.7 2.18.0 2.18.1 2.18.2 2.18.3 2.18.4 2.18.5 2.18.6 2.18.7 2.18.8 All 129 releases
rabbit-loader / rabbit-loader.php

rabbit-loader.php in RabbitLoader 2.18.2, at rabbit-loader.php

41 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.18.2
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 ?>