get_comment_author_IP
apply_filters( ‘get_comment_author_IP’, string $comment_author_IP , int $comment_ID , WP_Comment $comment )
过滤钩子:过滤评论作者返回的IP地址。
Filter Hook: Filters the comment author’s returned IP address.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$comment_author_IP | (string) | 评论作者的IP地址。 |
$comment_ID | (int) | 评论ID。 |
$comment | (WP_Comment) | 注释对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.1.0 | wp-includes/comment-template.php:280 | 1 | 0 |
get_comment_author_IP 为WP2原创文章,链接:https://www.wp2.cn/hook/get_comment_author_ip-2/