From 804092507d9a37d62717fcb7573d5debcbc5ca68 Mon Sep 17 00:00:00 2001 From: mmmaia Date: Mon, 16 Aug 2021 16:01:15 -0300 Subject: [PATCH] Remove Tracking of Admin User-Agent --- includes/class-wc-tracker.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/includes/class-wc-tracker.php b/includes/class-wc-tracker.php index e12803022aa..4b6ce51c374 100644 --- a/includes/class-wc-tracker.php +++ b/includes/class-wc-tracker.php @@ -160,9 +160,6 @@ class WC_Tracker { // Template overrides. $data['template_overrides'] = self::get_all_template_overrides(); - // Template overrides. - $data['admin_user_agents'] = self::get_admin_user_agents(); - // Cart & checkout tech (blocks or shortcodes). $data['cart_checkout'] = self::get_cart_checkout_info(); @@ -675,15 +672,6 @@ class WC_Tracker { return $override_data; } - /** - * When an admin user logs in, there user agent is tracked in user meta and collected here. - * - * @return array - */ - private static function get_admin_user_agents() { - return array_filter( (array) get_option( 'woocommerce_tracker_ua', array() ) ); - } - /** * Search a specific post for text content. *