get_var('SELECT COUNT(DISTINCT ' . self::$columnName . ') FROM ' . DB::table('visitor') . ' WHERE ' . self::$columnName . ' NOT LIKE "#hash#%"'); return $isOptionEnabled && $unhashedIPs > 0 ? 'action_required' : 'passed'; } public static function getStates() { return [ 'action_required' => [ 'status' => 'warning', 'title' => esc_html__('Unhashed IP Addresses Detected', 'wp-statistics'), 'notes' => View::load('components/privacy-audit/unhashed-ip', [], true), 'compliance' => [ 'key' => 'action_required', 'value' => esc_html__('Action Required', 'wp-statistics'), ] ] ]; } }