Current Path : /storage/v11800/romasitenew/public_html/wp-content/plugins/speedien/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/romasitenew/public_html/wp-content/plugins/speedien/speedien.php |
<?php
/**
* Plugin Name: Core Web Vitals Booster
* Plugin URI: https://speedien.com
* Description: Plugin to help with core web vitals metrics and page speed.
* Author: Speedien Team
* Text Domain: speedien
* Domain Path: /
* Version: 1.1.8
*/
// Your code starts here.
// If this file is called directly, abort.
if (!defined('WPINC')) {
die;
}
define('SPEEDIEN_API_URL', 'https://my.speedien.com');
require_once 'speedien_config.php';
require_once 'speedien_ui.php';
require_once 'speedien_cache.php';
register_activation_hook( __FILE__, 'speedien_cache_init' );
/**
* Deactivation hook.
*/
function speedien_deactivate() {
unlink(WP_CONTENT_DIR . '/advanced-cache.php');
$wp_config = file_get_contents($wp_config_file);
$wp_cache = '/define\([\'\"]WP_CACHE[\'\"].*/';
$wp_config = preg_replace($wp_cache, '', $wp_config);
file_put_contents($wp_config_file, $wp_config);
}
register_deactivation_hook( __FILE__, 'speedien_deactivate' );