| Server IP : 216.106.184.20 / Your IP : 216.73.216.234 Web Server : LiteSpeed System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64 User : sekoaid1 ( 1891) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sekoaid1/www/wp-content/plugins/insert-headers-and-footers/ |
Upload File : |
<?php
/**
* Uninstall WPCode.
*
* Remove:
* - custom capabilities.
*
* @package WPCode
*/
// Exit if accessed directly.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
// If the function already exists we shouldn't run the uninstall as another version of the plugin is active.
if ( function_exists( 'WPCode' ) ) {
return;
}
require_once 'ihaf.php';
if ( class_exists( 'WPCode_Capabilities' ) ) {
// Remove custom capabilities on uninstall.
WPCode_Capabilities::uninstall();
}
if ( class_exists( 'WPCode_Notifications' ) ) {
WPCode_Notifications::delete_notifications_data();
}
if ( function_exists( 'wp_unschedule_hook' ) ) {
wp_unschedule_hook( 'wpcode_usage_tracking_cron' );
}
delete_option( 'wpcode_send_usage_last_run' );
delete_option( 'wpcode_usage_tracking_config' );