apply_filters( "pre_comment_user_agent", string $comment_agent )

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

Parameters

$comment_agent

string

The comment author"s browser user agent.

Source

File: wp-includes/comment.php.

View all references

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

Leave a Reply

Your email address will not be published. Required fields are marked *