参数 $comment_ID (int|WP_Comment)(可选) WP_Comment或要打印作者IP地址的评论的ID。默认当前评论。 相关使用描述esc_html()转义HTML块get_comment_author_IP() 源码查看源码 官方文档 更新日志版本描述4.4.0增加了$comment_ID也能接受WP_Comment对象的能力。0.71开始引入 使用示例示例1显示评论作者IP Posted from: <?php comment_author_IP(); ?>