apply_filters( ‘pre_comment_user_agent’, string $comment_agent )

In this article

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

Parameters

$comment_agentstring
The comment author’s browser user agent.

Source

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

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.