PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
plugins
/
wp-statistics
/
includes
<?php namespace WP_STATISTICS; class PrivacyErasers { /** * Finds and erases visitors' data by email address. * * @param string $emailAddress The user email address. * @param int $page Page. * * @return array An array of personal data in name value pairs * * @since 13.2.5 */ public static function visitorsDataEraser($emailAddress, $page = 1) { $response = array( 'items_removed' => false, 'items_retained' => false, 'messages' => array(), 'done' => true, ); global $wpdb; $visitor_table = DB::table('visitor'); $user = get_user_by('email', $emailAddress); if (!$user) { return $response; } $visitors = $wpdb->query($wpdb->prepare("DELETE FROM {$visitor_table} WHERE `user_id` = %s", $user->ID)); if ($visitors) { $response['messages'] = array(sprintf(__('Visitor data deleted for %s.', 'wp-statistics'), $emailAddress)); $response['items_removed'] = true; } return $response; } }
[-] class-wp-statistics-geoip.php
[edit]
[-] defines.php
[edit]
[-] class-wp-statistics-privacy-exporter.php
[edit]
[-] template-functions.php
[edit]
[-] class-wp-statistics-helper.php
[edit]
[-] class-wp-statistics-rest-api.php
[edit]
[-] class-wp-statistics-search-engine.php
[edit]
[-] class-wp-statistics-schedule.php
[edit]
[-] class-wp-statistics-purge.php
[edit]
[-] class-wp-statistics-timezone.php
[edit]
[-] class-wp-statistics-shortcode.php
[edit]
[-] class-wp-statistics.php
[edit]
[-] class-wp-statistics-option.php
[edit]
[+]
api
[-] class-wp-statistics-user.php
[edit]
[-] class-wp-statistics-pages.php
[edit]
[-] class-wp-statistics-mail.php
[edit]
[-] class-wp-statistics-install.php
[edit]
[-] class-wp-statistics-meta-box.php
[edit]
[-] class-wp-statistics-uninstall.php
[edit]
[+]
defines
[-] class-wp-statistics-frontend.php
[edit]
[-] class-wp-statistics-historical.php
[edit]
[-] class-wp-statistics-user-online.php
[edit]
[-] class-wp-statistics-country.php
[edit]
[-] class-wp-statistics-db.php
[edit]
[-] class-wp-statistics-admin-bar.php
[edit]
[-] class-wp-statistics-referred.php
[edit]
[-] class-wp-statistics-privacy-erasers.php
[edit]
[-] class-wp-statistics-user-agent.php
[edit]
[-] class-wp-statistics-hits.php
[edit]
[+]
libraries
[-] class-wp-statistics-menus.php
[edit]
[+]
admin
[+]
..
[-] class-wp-statistics-ip.php
[edit]
[-] class-wp-statistics-exclusion.php
[edit]
[-] class-wp-statistics-widget.php
[edit]
[-] class-wp-statistics-visitor.php
[edit]