wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_comment_user_agent › WordPress Filter Hooks

Since1.5.0
Deprecatedn/a
apply_filters( 'pre_comment_user_agent', ( $commentdata['comment_agent'] ?? '' )
Parameters:
  • () 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', ( $commentdata['comment_agent'] ?? '' ) );