| 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/www/wp-content/plugins/kadence-blocks/ |
Upload File : |
<?php
/**
* Handles uninstalling the telemetry library.
*/
use KadenceWP\KadenceBlocks\App;
use KadenceWP\KadenceBlocks\lucatume\DI52\Container;
use KadenceWP\KadenceBlocks\Optimizer\Database\Optimizer_Table;
use KadenceWP\KadenceBlocks\Optimizer\Database\Viewport_Hash_Table;
use KadenceWP\KadenceBlocks\StellarWP\ProphecyMonorepo\Container\ContainerAdapter;
use KadenceWP\KadenceBlocks\StellarWP\Schema\Register;
use KadenceWP\KadenceBlocks\StellarWP\Telemetry\Uninstall;
// Prevent direct file access.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
die;
}
require_once plugin_dir_path( __FILE__ ) . 'vendor/vendor-prefixed/autoload.php';
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
Uninstall::run( 'kadence-blocks' );
try {
// Boot the Kadence application to set up all providers.
$app = App::instance( new ContainerAdapter( new Container() ) );
// Remove optimization tables.
Register::remove_table( Viewport_Hash_Table::class );
Register::remove_table( Optimizer_Table::class );
} catch ( Throwable $e ) {
if ( function_exists( 'error_log' ) && defined( 'WP_DEBUG' ) && WP_DEBUG === true ) {
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
error_log( 'An error occurred when uninstalling Kadence Blocks: ' . $e->getMessage() );
}
}