rest_is_ip_address
rest_is_ip_address ( $ip )
Parameters:Returns:- (string|false) The valid IP address, otherwise false.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Determines if an IP address is valid.Handles both IPv4 and IPv6 addresses.