comment_email

comment_email

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('comment_email') is found 2 times:

  • /wp-admin/includes/class-wp-comments-list-table.php line 1006
     
    		if ( $this->user_can ) {
    			if ( ! empty( $comment->comment_author_email ) ) {
    				/** This filter is documented in wp-includes/comment-template.php */
    				$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
    
    				if ( ! empty( $email ) && '@' !== $email ) {
    					printf( '<a href="%1$s">%2$s</a><br />', esc_url( 'mailto:' . $email ), esc_html( $email ) );
    				}
    			}
    
    
  • /wp-includes/comment-template.php line 203
    	 *
    	 * @param string     $comment_author_email The comment author's email address.
    	 * @param WP_Comment $comment              The comment object.
    	 */
    	$comment_author_email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
    
    	if ( ( ! empty( $comment_author_email ) ) && ( '@' !== $comment_author_email ) ) {
    		$display = ( '' !== $link_text ) ? $link_text : $comment_author_email;
    
    		$comment_author_email_link = $before . sprintf(
    			'<a href="%1$s">%2$s</a>',