forked from datracka/revslider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.php
executable file
·34 lines (31 loc) · 1.25 KB
/
uninstall.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
if( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') )
exit();
/*
$currentFile = __FILE__;
$currentFolder = dirname($currentFile);
require_once $currentFolder . '/inc_php/revslider_globals.class.php';
global $wpdb;
$tableSliders = $wpdb->prefix . GlobalsRevSlider::TABLE_SLIDERS_NAME;
$tableSlides = $wpdb->prefix . GlobalsRevSlider::TABLE_SLIDES_NAME;
$tableSettings = $wpdb->prefix . GlobalsRevSlider::TABLE_SETTINGS_NAME;
$tableCss = $wpdb->prefix . GlobalsRevSlider::TABLE_CSS_NAME;
$tableAnims = $wpdb->prefix . GlobalsRevSlider::TABLE_LAYER_ANIMS_NAME;
$tableStaticSlides = $wpdb->prefix . GlobalsRevSlider::TABLE_STATIC_SLIDES_NAME;
$wpdb->query( "DROP TABLE $tableSliders" );
$wpdb->query( "DROP TABLE $tableSlides" );
$wpdb->query( "DROP TABLE $tableSettings" );
$wpdb->query( "DROP TABLE $tableCss" );
$wpdb->query( "DROP TABLE $tableAnims" );
$wpdb->query( "DROP TABLE $tableStaticSlides" );
delete_option('revslider-latest-version');
delete_option('revslider-update-check-short');
delete_option('revslider-update-check');
delete_option('revslider_update_info');
delete_option('revslider-api-key');
delete_option('revslider-username');
delete_option('revslider-code');
delete_option('revslider-valid');
delete_option('revslider-valid-notice');
*/
?>