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

Description

Retrieves 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_rss

Top Google Results

User discussions

wpseek mobile