pre_comment_user_agent

pre_comment_user_agent

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('pre_comment_user_agent') is found 1 times:

  • /wp-includes/comment.php line 2114
    	 * @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