X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/plugnmeet
home
/
freights
/
public_html
/
wp-content
/
plugins
/
plugnmeet
/
??
..
??
LICENSE.txt
(17.67 KB)
??
README.txt
(3.56 KB)
??
admin
??
editCourseGrades
(9.03 KB)
??
helpers
??
includes
??
index.down
(9.03 KB)
??
index.php
(6 B)
??
languages
??
plugnmeet.php
(3.09 KB)
??
public
??
sqlupdate2
(9.55 KB)
??
uninstall.php
(1.56 KB)
Editing: uninstall.php
<?php /** * Fired when the plugin is uninstalled. * * We are not using an uninstall hook because WordPress perfoms bad when using it. * Even if below issue is "fixed", it did not resolve the perfomance issue. * * @see https://core.trac.wordpress.org/ticket/31792 * * * When populating this file, consider the following flow * of control: * * - Check if the $_REQUEST['plugin'] content actually is plugnmeet/plugnmeet.php * - Check if the $_REQUEST['action'] content actually is delete-plugin * - Run a check_ajax_referer check to make sure it goes through authentication * - Run a current_user_can check to make sure current user can delete a plugin * * @link https://www.mynaparrot.com * @since 1.0.0 * @package Plugnmeet */ /** * Perform Uninstall Actions. * * If uninstall not called from WordPress, * If no uninstall action, * If not this plugin, * If no caps, * then exit. * * @since 1.0.0 */ function plugnmeet_uninstall() { if (!defined('WP_UNINSTALL_PLUGIN') || empty($_REQUEST) || !isset($_REQUEST['plugin']) || !isset($_REQUEST['action']) || 'plugnmeet/plugnmeet.php' !== $_REQUEST['plugin'] || 'delete-plugin' !== $_REQUEST['action'] || !check_ajax_referer('updates', '_ajax_nonce') || !current_user_can('activate_plugins') ) { exit; } global $wpdb; $table_name = $wpdb->prefix . "plugnmeet_rooms"; $sql = "DROP TABLE IF EXISTS {$table_name};"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($sql); } plugnmeet_uninstall();
Upload File
Create Folder