get_comment_author_ip
get_comment_author_ip ( $comment_id = 0 )
Parameters:- (int|WP_Comment) comment_id Optional. WP_Comment or the ID of the comment for which to get the author's IP address. Default current comment.
Returns:- (string) Comment author's IP address, or an empty string if it's not available.
Defined at:Change Log: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Retrieves the IP address of the author of the current comment.