'; return [ 'success' => [ 'status' => $status, 'icon' => $icon, 'title' => $title, 'summary' => esc_html__('User Consent Not Required.', 'wp-statistics'), 'notes' => __('

Based on your current configuration, WP Statistics is not recording any personal data. Consequently, under these settings, your use of WP Statistics does not require obtaining user consent. This approach aligns with privacy-focused analytics, minimizing compliance burdens while respecting user privacy.

', 'wp-statistics') ], 'warning' => [ 'icon' => $icon, 'status' => $status, 'title' => $title, 'summary' => esc_html__('User Consent Required.', 'wp-statistics'), 'notes' => __('

Your current settings indicate that WP Statistics is configured to collect personal data. In this case, it is essential to obtain user consent to comply with privacy laws and regulations. For detailed information on which settings may necessitate user consent and how to adjust them, please refer to the Privacy Audit section of this page.

To have consent for WP Statistics on your site, read WP Consent Level Integration.

', 'wp-statistics') ], ]; } public static function getStatus() { $requirements = [ RecordUserPageVisits::isOptionPassed(), HashIpAddress::isOptionPassed(), AnonymizeIpAddress::isOptionPassed(), StoreUserAgentString::isOptionPassed() ]; if (in_array(false, $requirements)) { return 'warning'; } return 'success'; } }