GeoIP Detection'; ?>
hostip.info as data source.
You can click on the button below to download and install Maxmind GeoIPv2 Lite City now.', 'geoip-detect' ), $url); ?>
CC BY-SA. See License for details.', 'geoip-detect')); ?>
' . sprintf(__( 'This site is using %s to identify the geographic location of your IP adress. %s (Add here: how this information is used, how long it is retained. Be especially careful when using this information to change prices or selling options, as this might not be legal.)', 'geoip-detect' ), $source, $caching) . '
'; if (get_option('geoip-detect-ajax_enabled') ) { if ((get_option('geoip-detect-ajax_enqueue_js') || get_option('geoip-detect-set_css_country'))) { $content .= '' . __('In order to increase the performance of this site, it is setting a cookie called "geoip-detect-result" containing the geographic information of the current user. (Explain how the information stored in this cookie will be used, e.g.: This information is not used for tracking purposes, but ...) The cookie will automatically deleted after 1 day by your browser.', 'geoip-detect') . '
'; } } wp_add_privacy_policy_content( 'GeoIP Detection', wp_kses_post( wpautop( $content, false ) ) ); } add_action( 'admin_init', 'geoip_detect_add_privacy_policy_content' ); /** * This function is called when the user clicks on "Remove" in the wp-admin */ function on_uninstall() { $registry = DataSourceRegistry::getInstance(); $registry->uninstall(); } register_uninstall_hook(GEOIP_PLUGIN_FILE, __NAMESPACE__ . '\\on_uninstall'); // For Debugging purposes ... if (WP_DEBUG && isset($_GET['uninstall']) && $_GET['uninstall'] == 'asdf') { add_action('plugins_loaded', function() { on_uninstall(); }); }