wp_privacy_anonymize_ip
wp_privacy_anonymize_ip ( $ip_addr, $ipv6_fallback = false )
Parameters:- (string) ip_addr The IPv4 or IPv6 address to be anonymized.
- (bool) ipv6_fallback Optional. Whether to return the original IPv6 address if the needed functions to anonymize it are not present. Default false, return `::` (unspecified address).
Returns:- (string) The anonymized IP address.
Defined at:Change Log: - Introduced in WordPress: 4.9.6
- Deprecated in WordPress: —
Description
Returns an anonymized IPv4 or IPv6 address.