pre_comment_user_agent

pre_comment_user_agent

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_comment_user_agent') is found 1 times:

  • /wp-includes/comment.php line 2133
    2129
    2130
    2131
    2132
    2133
    2134
    2135
    2136
    2137
    2138
    2139
    * @since 1.5.0
     *
     * @param string $comment_agent The comment author's browser user agent.
     */
    $commentdata['comment_agent'] = apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] ) ? $commentdata['comment_agent'] : '' ) );
    /** This filter is documented in wp-includes/comment.php */
    $commentdata['comment_author'] = apply_filters( 'pre_comment_author_name', $commentdata['comment_author'] );
    /**
     * Filters the comment content before it is set.
     *
     * @since 1.5.0