comment_email

comment_email

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

See hook in core

Displaying hooks found in version: wordpress-6.1.1

apply_filters('comment_email') is found 2 times:

  • /wp-admin/includes/class-wp-comments-list-table.php line 958
     
    		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 194
    	 *
    	 * @param string     $comment_author_email The comment author's email address.
    	 * @param WP_Comment $comment              The comment object.
    	 */
    	$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
    
    	if ( ( ! empty( $email ) ) && ( '@' !== $email ) ) {
    		$display = ( '' !== $linktext ) ? $linktext : $email;
    		$return  = $before;
    		$return .= sprintf( '<a href="%1$s">%2$s</a>', esc_url( 'mailto:' . $email ), esc_html( $display ) );
    		$return .= $after;