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:
  • 4: .

Description

Retrieve the IP address of the author of the current comment.

Related Functions

get_comment_author, get_comment_author_link, comment_author_ip, get_comment_author_email, get_comment_author_url

Top Google Results

User discussions

wpseek mobile