| Server IP : 85.112.90.236 / Your IP : 192.168.1.26 Web Server : Apache System : Linux 85-112-90-236.cprapid.com 6.12.0-211.7.3.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 12:46:58 EDT 2026 x86_64 User : ftechme ( 1002) PHP Version : 8.2.32 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/ftechme/public_html/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();
}
}