/** * Deactivate All BUP Plugins * * @return NULL Check if it's site or multisite and decativate it. */ public static function deletePlugin() { installerBup::delete(); }
/** * Deactivate All BUP Plugins * * @return NULL Check if it's site or multisite and decativate it. */ public function deactivatePlugin() { /*global $wpdb; if (function_exists('is_multisite') && is_multisite()) { $orig_id = $wpdb->blogid; $blog_id = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs"); foreach ($blog_id as $id) { if (switch_to_blog($id)) { installerBup::delete(); } } switch_to_blog($orig_id); return; } else { installerBup::delete(); }*/ installerBup::delete(); }