| Server IP : 219.234.31.115 / Your IP : 216.73.217.134 Web Server : Apache System : Linux ebs-140924 5.10.0-30-amd64 #1 SMP Debian 5.10.218-1 (2024-06-01) x86_64 User : vndaystarftp ( 67432) PHP Version : 7.3.33 Disable Function : link,symlink,passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server,pcntl_fork,pcntl_rfork MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/wwwroot/vndaystarftp/wwwroot/wp-content/plugins/admin-menu-editor-pro/ |
Upload File : |
<?php
/**
* @author W-Shadow
* @copyright 2012
*
* The uninstallation script.
*/
if( defined( 'ABSPATH') && defined('WP_UNINSTALL_PLUGIN') ) {
//Remove the plugin's settings
delete_option('ws_menu_editor_pro');
if ( function_exists('delete_site_option') ){
delete_site_option('ws_menu_editor_pro');
//Remove the "automatic license activation failed" flag. Most sites won't have this.
delete_site_option('wslm_auto_activation_failed-admin-menu-editor-pro');
}
//Remove update metadata
delete_option('ame_pro_external_updates');
//Remove hint visibility flags
if ( function_exists('delete_metadata') ) {
delete_metadata('user', 0, 'ame_show_hints', '', true);
}
//Remove meta box settings.
delete_option('ws_ame_meta_boxes');
if ( function_exists('delete_site_option') ) {
delete_site_option('ws_ame_meta_boxes');
}
//Remove tweak settings.
delete_option('ws_ame_tweak_settings');
delete_option('ws_ame_detected_tmce_buttons');
delete_option('ws_ame_detected_gtb_blocks');
if ( function_exists('delete_site_option') ) {
delete_site_option('ws_ame_tweak_settings');
delete_site_option('ws_ame_detected_tmce_buttons');
delete_site_option('ws_ame_detected_gtb_blocks');
}
//Call the uninstaller for the "highlight new menus" module.
$highlighterUninstaller = dirname(__FILE__) . '/modules/highlight-new-menus/uninstall.php';
if ( file_exists($highlighterUninstaller) ) {
include (dirname(__FILE__) . '/modules/highlight-new-menus/uninstall.php');
}
//Call the role editor uninstaller.
$roleEditorUninstaller = dirname(__FILE__) . '/extras/modules/role-editor/uninstall.php';
if ( file_exists($roleEditorUninstaller) ) {
include (dirname(__FILE__) . '/extras/modules/role-editor/uninstall.php');
}
//Remove license data (if any).
if ( file_exists(dirname(__FILE__) . '/extras.php') ) {
require_once dirname(__FILE__) . '/includes/basic-dependencies.php';
require_once dirname(__FILE__) . '/extras.php';
if ( isset($ameProLicenseManager) ) {
$ameProLicenseManager->unlicenseThisSite();
}
}
}