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



pre_comment_user_agent ›

Since1.5.0
已弃用n/a
apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] )
参数:
  • (string) $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', ( isset( $commentdata['comment_agent'] ) ? $commentdata['comment_agent'] : '' ) );