PluginProbe ʕ •ᴥ•ʔ
Aruba HiSpeed Cache / 3.0.15
Aruba HiSpeed Cache v3.0.15
3.0.15 3.0.14 3.0.13 1.2.4 1.2.5 1.2.6 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.18 2.0.19 2.0.20 2.0.21 2.0.22 2.0.23 2.0.24 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3
aruba-hispeed-cache / uninstall.php
aruba-hispeed-cache Last commit date
admin 3 days ago assets 5 months ago languages 5 months ago src 3 days ago aruba-hispeed-cache.php 3 days ago index.php 2 years ago readme.txt 3 days ago uninstall.php 3 days ago
uninstall.php
33 lines
1 <?php
2 /**
3 * Manages the uninstallation process of the
4 * Aruba HiSpeed Cache Plugin for more information
5 * php version 7.4
6 *
7 * @category Wordpress-plugin
8 * @package Aruba-HiSpeed-Cache
9 * @author Aruba Developer <hispeedcache.developer@aruba.it>
10 * @license https://www.gnu.org/licenses/gpl-3.0.html GPLv3
11 * @link https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/
12 */
13
14 namespace ArubaSPA\HiSpeedCache;
15
16 // If uninstall.php is not called by WordPress, die.
17 if ( ! \defined( 'WP_UNINSTALL_PLUGIN' ) ) {
18 exit;
19 }
20
21 \delete_site_option( 'aruba_hispeed_cache_options' );
22 \delete_site_option( 'aruba_hispeed_cache_version');
23 if ( ! is_multisite() ) {
24
25 require_once( ABSPATH . 'wp-admin/includes/file.php' );
26 $ahsc_htaccess = get_home_path() . '.htaccess';
27 insert_with_markers( $ahsc_htaccess, 'AHSC_RULES', array(' ') );
28
29 $ahsc_file = WP_CONTENT_DIR . '/object-cache.php';
30 if ( file_exists( $ahsc_file ) ) {
31 wp_delete_file( $ahsc_file );
32 }
33 }