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.
Defined at:Change Log: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Retrieve the IP address of the author of the current comment.