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



pre_comment_user_ip › WordPress过滤钩子

Since1.5.0
已弃用n/a
apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] )
参数:
  • (string) $comment_author_ip The comment author's IP address.
    Required: Yes
定义在:
文档:

Filters the comment author's IP address before it is set.





源码

$commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] );