get_privacy_message());
}
}
/**
* Add privacy policy content for the privacy policy page.
*
* @since 3.4.0
*/
private function get_privacy_message()
{
$content = '
' .
'
' .
__('This sample language includes the basics around what personal data your store may be collecting and storing. Depending on what settings are enabled and which additional plugins are used, the specific information shared by your store will vary. We recommend consulting with a lawyer when deciding what information to disclose on your privacy policy.', 'wp-statistics') .
'
' .
'
' . __('We collect information about you during the visit our website.', 'wp-statistics') . '
' .
'
' . __('What we collect and store', 'wp-statistics') . '
' .
'
' . __('While you visit our site, we’ll track:', 'wp-statistics') . '
' .
'
' .
'- ' . __('Pages you’ve viewed: we’ll use this to, for example, Website visit statistics and user behavior', 'wp-statistics') . '
' .
'- ' . __('Browser user agent: we’ll use this for purposes like creating charts of views, most used browsers, etc.') . '
';
if (!Option::get('anonymize_ips') and !Option::get('hash_ips')) {
$content .= '- ' . __('IP address') . '
';
} else {
if (Option::get('anonymize_ips')) {
$content .= '- ' . __('An anonymize string created from your ip address, For example, 888.888.888.888 > 888.888.888.000).') . '
';
}
if (Option::get('hash_ips')) {
$content .= '- ' . __('An hashed string created from your ip address.') . '
';
}
}
$content .= '
';
return apply_filters('wp_statistics_privacy_policy_content', $content);
}
/**
* Integrate this exporter implementation within the WordPress core exporters.
*
* @param array $exporters List of exporter callbacks.
* @return array
*/
public function register_exporters($exporters = array())
{
$exporters['wp-statistics-visitor-data'] = array(
'exporter_friendly_name' => __('WP Statistics Visitors Data', 'wp-statistics'),
'callback' => array(PrivacyExporter::class, 'visitorsDataExporter'),
);
return $exporters;
}
/**
* Integrate this eraser implementation within the WordPress core erasers.
*
* @param array $erasers List of eraser callbacks.
* @return array
*/
public function register_erasers($erasers = array())
{
$erasers['wp-statistics-visitor-data'] = array(
'eraser_friendly_name' => __('WP Statistics Visitors Data', 'wp-statistics'),
'callback' => array(PrivacyErasers::class, 'visitorsDataEraser'),
);
return $erasers;
}
}
new Privacy();