WordPress开发者和主题制作者的搜索引擎



get_comment_author_ip ›

Since4.1.0
已弃用n/a
apply_filters( 'get_comment_author_IP', $comment->comment_author_IP, $comment->comment_ID, $comment )
参数: (3)
  • (string) $comment_author_IP The comment author's IP address.
    Required: Yes
  • (int) $comment_ID The comment ID.
    Required: Yes
  • (WP_Comment) $comment The comment object.
    Required: Yes
定义在:
文档:

Filters the comment author's returned IP address.





源码

return apply_filters( 'get_comment_author_IP', $comment->comment_author_IP, $comment->comment_ID, $comment );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase