GRAYBYTE WORDPRESS FILE MANAGER8958

Server IP : 162.213.255.40 / Your IP : 216.73.216.121
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/email-log/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/email-log//uninstall.php
<?php
/**
 * Uninstall page for Email Log Plugin to clean up all plugin data.
 *
 * This file is named uninstall.php since WordPress requires that name.
 */

// exit if WordPress is not uninstalling the plugin.
if ( ! defined( 'ABSPATH' ) && ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit();
}

if ( is_multisite() ) {
	// Note: if there are more than 10,000 blogs or
	// if `wp_is_large_network` filter is set, then this may fail.
	$sites = get_sites();

	foreach ( $sites as $site ) {
		switch_to_blog( $site->blog_id );
		email_log_delete_db_data();
		restore_current_blog();
	}
} else {
	email_log_delete_db_data();
}

/**
 * Delete all email log data from db.
 *
 * The data include email log table, options, capability and add-on license data.
 *
 * @since 1.7
 *
 * @global object $wpdb
 */
function email_log_delete_db_data() {
	global $wpdb;

	$remove_data_on_uninstall = false;

	$option = get_option( 'email-log-core' );
	if ( is_array( $option ) && array_key_exists( 'remove_on_uninstall', $option ) &&
	     'true' === strtolower( $option['remove_on_uninstall'] ) ) {

		$remove_data_on_uninstall = true;
	}

	// This is hardcoded on purpose, since the entire plugin is not loaded during uninstall.
	$table_name = $wpdb->prefix . 'email_log';

	if ( $remove_data_on_uninstall ) {
		if ( $wpdb->get_var( "SHOW TABLES LIKE '{$table_name}'" ) == $table_name ) {
			$wpdb->query( "DROP TABLE $table_name" );
		}

		delete_option( 'email-log-db' );
		delete_option( 'email-log-core' );

		$roles = get_editable_roles();
		foreach ( $roles as $role_name => $role_obj ) {
			$role = get_role( $role_name );

			if ( ! is_null( $role ) ) {
				$role->remove_cap( 'manage_email_logs' );
			}
		}
		// Mask Fields addon adds this option.
		delete_option( 'el_mask_fields' );

		delete_option( 'el_bundle_license' );
		$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'el_license_%'" );
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:45:52
hellrfbn / hellrfbn
0755
assets
--
July 23 2025 07:38:29
hellrfbn / hellrfbn
0755
include
--
July 23 2025 07:38:29
hellrfbn / hellrfbn
0755
languages
--
July 23 2025 07:38:29
hellrfbn / hellrfbn
0755
vendor
--
July 23 2025 07:38:29
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:29
hellrfbn / hellrfbn
0644
AUTHORS.md
0.243 KB
July 03 2024 17:38:27
hellrfbn / hellrfbn
0644
email-log.php
2.723 KB
July 03 2024 17:38:27
hellrfbn / hellrfbn
0644
load-email-log.php
2.813 KB
July 03 2024 17:38:27
hellrfbn / hellrfbn
0644
readme.txt
16.947 KB
July 03 2024 17:38:27
hellrfbn / hellrfbn
0644
uninstall.php
1.865 KB
July 03 2024 17:38:27
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF