' . __( 'Suggested text:' ) . ''; $policy .= "

{$suggested_text} "; $policy .= sprintf( esc_html__( 'Session data, such as IP addresses and user agents, are stored to verify that users with the %s role or higher are logging-in from trusted devices.', 'it-l10n-ithemes-security-pro' ), translate_user_role( ITSEC_Modules::get_setting( 'fingerprinting', 'role' ) ) ); $policy .= '

'; return $policy; } public function get_privacy_policy_for_sharing( $policy ) { $role = ITSEC_Modules::get_setting( 'fingerprinting', 'role' ); require_once( ITSEC_Core::get_core_dir() . 'lib/class-itsec-lib-geolocation.php' ); $geolocators = apply_filters( 'itsec_geolocator_apis', array() ); $has_mm_api = $has_mm_db = false; foreach ( $geolocators as $geolocator ) { if ( $geolocator instanceof ITSEC_Geolocator_MaxMind_API ) { $has_mm_api = true; } if ( $geolocator instanceof ITSEC_Geolocator_MaxMind_DB ) { $has_mm_db = true; } } $suggested_text = '' . __( 'Suggested text:' ) . ''; if ( $has_mm_api ) { $policy .= "

{$suggested_text} "; $policy .= sprintf( esc_html__( 'When logging into this website, users with the %1$s role or higher may have their IP address transmitted to MaxMind to provide a rough estimate of their location to help prevent unauthorized access to their account. Read the %2$sMaxMind EULA%3$s for more details about their service.', 'it-l10n-ithemes-security-pro' ), translate_user_role( $role ), '', '' ); $policy .= '

'; } elseif ( ! $has_mm_db ) { $policy .= "

{$suggested_text} "; $policy .= wp_sprintf( esc_html__( 'When logging into this website, users with the %1$s role or higher may have their IP address transmitted to one of the following 3rd-parties, depending on availability, to provide a rough estimate of their location to help prevent unauthorized access to their account: %2$l', 'it-l10n-ithemes-security-pro' ), translate_user_role( $role ), array( 'IP Info', 'Geobytes', 'GeoPlugin', 'IP API', ) ); $policy .= '

'; } return $policy; } } new ITSEC_Fingerprinting_Privacy();