pre_comment_author_name

pre_comment_author_name

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_comment_author_name') is found 2 times:

  • /wp-includes/comment.php line 594
    		 * @since 1.5.0
    		 *
    		 * @param string $author_cookie The comment author name cookie.
    		 */
    		$comment_author = apply_filters( 'pre_comment_author_name', $_COOKIE[ 'comment_author_' . COOKIEHASH ] );
    		$comment_author = wp_unslash( $comment_author );
    		$comment_author = esc_attr( $comment_author );
    
    		$_COOKIE[ 'comment_author_' . COOKIEHASH ] = $comment_author;
    	}
    
    
  • /wp-includes/comment.php line 2135
    	 * @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
    	 *
    	 * @param string $comment_content The comment content.