wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



pre_comment_user_agent › WordPress Filter Hooks

Da1.5.0
Deprecaton/a
apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] )
Parametri:
  • (string) $comment_agent The comment author's browser user agent.
    Richiesto:
Definito a:
Codex:

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





Sorgenti

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