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



pre_comment_user_agent › WordPress过滤钩子

Since1.5.0
已弃用n/a
› apply_filters( 'pre_comment_user_agent', ( $commentdata['comment_agent'] ?? '' )
参数:
  • () comment_agent The comment author's browser user agent.
    Required: Yes
定义在:
文档:

Filters the comment author's browser user agent before it is set.





源码

$commentdata['comment_agent'] = apply_filters( 'pre_comment_user_agent', ( $commentdata['comment_agent'] ?? '' ) );