| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/tickwaves.co.uk/wwwroot/wp-content/plugins/wp-job-portal/ |
Upload File : |
<?php if (!defined('ABSPATH')) die('Restricted Access'); ?>
<?php
/**
* WP Job Portal Uninstall
*
* Uninstalling WP Job Portal tables, and pages.
*
* @author Ahmed Bilal
* @category Core
* @package WP Job Portal/Uninstaller
* @version 1.0.0
*/
if (!defined('WP_UNINSTALL_PLUGIN'))
exit();
global $wpdb;
include_once 'includes/deactivation.php';
if(function_exists('is_multisite') && is_multisite()){
$blogs = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
foreach($blogs as $blog_id){
switch_to_blog( $blog_id );
$tablestodrop = WPJOBPORTALdeactivation::wpjobportal_tables_to_drop();
foreach($tablestodrop as $tablename){
$wpdb->query( "DROP TABLE IF EXISTS ".esc_sql($tablename) );
}
restore_current_blog();
}
}else{
$tablestodrop = WPJOBPORTALdeactivation::wpjobportal_tables_to_drop();
foreach($tablestodrop as $tablename){
$wpdb->query( "DROP TABLE IF EXISTS ".esc_sql($tablename) );
}
}