A WordPress-centric search engine for devs and theme authors



pre_comment_user_agent ›

Since1.5.0
Deprecatedn/a
apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] )
Parameters:
  • (string) $comment_agent The comment author's browser user agent.
    Required: Yes
Defined at:
Codex:

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





Source

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