| Server IP : 51.254.39.36 / Your IP : 216.73.217.109 Web Server : Microsoft-IIS/10.0 System : Windows NT WIN-12GDIEC772I 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_21(allbatf787) ( 0) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/allbat-sb.fr/httpdocs/wp-content/plugins/kadence-blocks-pro/ |
Upload File : |
<?php
/**
* Uninstall Kadence Blocks Pro
*/
// Exit if accessed directly.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
wp_clear_scheduled_hook( 'kadence_countdown_daily_cleanup' );
if ( apply_filters( 'kadence_blocks_pro_remove_data_uninstall', false ) ) {
// Load kbp file.
include_once 'kadence-blocks-pro.php';
if ( class_exists( 'Kadence_Blocks_Pro' ) ) {
// This is kind of stupid but it ensures that the capabilities file (class used below) gets loaded.
Kadence_Blocks_Pro::instance( __DIR__ . '/kadence-blocks-pro.php' );
}
$entries_table = new \KBP\Tables\Entries();
$entries_table->uninstall();
$entries_meta_table = new \KBP\Tables\Entries_Meta();
$entries_meta_table->uninstall();
$countdown_table = new \KBP\Tables\Countdown_Entries();
if ( $countdown_table->exists() ) {
$countdown_table->uninstall();
}
}