Title: wp-includes/comment-template.php | Page 4 of 4 | Developer.WordPress.org

---

# File: wp-includes/comment-template.php

 * function[comment_class()](https://developer.wordpress.org/reference/functions/comment_class/)
 * Generates semantic classes for each comment element.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/comment_class/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/comment_class/#uses)
   | Source: [wp-includes/comment-template.php:493](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L493-L502)
 * function[get_comment_class()](https://developer.wordpress.org/reference/functions/get_comment_class/)
 * Returns the classes for the comment div as an array.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_comment_class/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/get_comment_class/#uses)
   | Source: [wp-includes/comment-template.php:520](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L520-L600)
 * hook[comment_class](https://developer.wordpress.org/reference/hooks/comment_class/)
 * Filters the returned CSS classes for the current comment.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_class/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_class/#uses)
   | Source: [wp-includes/comment-template.php:599](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L599-L599)
 * function[get_comment_author_link()](https://developer.wordpress.org/reference/functions/get_comment_author_link/)
 * Retrieves the HTML link to the URL of the author of the current comment.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/get_comment_author_link/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/get_comment_author_link/#uses)
   | Source: [wp-includes/comment-template.php:233](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L233-L294)
 * hook[get_comment_author_link](https://developer.wordpress.org/reference/hooks/get_comment_author_link/)
 * Filters the comment author’s link for display.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_comment_author_link/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_comment_author_link/#uses)
   | Source: [wp-includes/comment-template.php:293](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L293-L293)
 * function[comment_author_link()](https://developer.wordpress.org/reference/functions/comment_author_link/)
 * Displays the HTML link to the URL of the author of the current comment.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/comment_author_link/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/comment_author_link/#uses)
   | Source: [wp-includes/comment-template.php:305](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L305-L307)
 * function[get_comment_author_IP()](https://developer.wordpress.org/reference/functions/get_comment_author_ip/)
 * Retrieves the IP address of the author of the current comment.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_comment_author_ip/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_comment_author_ip/#uses)
   | Source: [wp-includes/comment-template.php:319](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L319-L333)
 * hook[get_comment_author_IP](https://developer.wordpress.org/reference/hooks/get_comment_author_ip/)
 * Filters the comment author’s returned IP address.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_comment_author_ip/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_comment_author_ip/#uses)
   | Source: [wp-includes/comment-template.php:332](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L332-L332)
 * function[get_comment_author()](https://developer.wordpress.org/reference/functions/get_comment_author/)
 * Retrieves the author of the current comment.
 * Used by [9 functions](https://developer.wordpress.org/reference/functions/get_comment_author/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/get_comment_author/#uses)
   | Source: [wp-includes/comment-template.php:24](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L24-L57)
 * function[comment_author_IP()](https://developer.wordpress.org/reference/functions/comment_author_ip/)
 * Displays the IP address of the author of the current comment.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/comment_author_ip/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/comment_author_ip/#uses)
   | Source: [wp-includes/comment-template.php:344](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L344-L346)
 * hook[get_comment_author](https://developer.wordpress.org/reference/hooks/get_comment_author/)
 * Filters the returned comment author name.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_comment_author/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_comment_author/#uses)
   | Source: [wp-includes/comment-template.php:56](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L56-L56)
 * function[get_comment_author_url()](https://developer.wordpress.org/reference/functions/get_comment_author_url/)
 * Retrieves the URL of the author of the current comment, not linked.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/get_comment_author_url/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/get_comment_author_url/#uses)
   | Source: [wp-includes/comment-template.php:358](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L358-L382)
 * function[comment_author()](https://developer.wordpress.org/reference/functions/comment_author/)
 * Displays the author of the current comment.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/comment_author/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/comment_author/#uses)
   | Source: [wp-includes/comment-template.php:68](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L68-L83)
 * hook[comment_author](https://developer.wordpress.org/reference/hooks/comment_author/)
 * Filters the comment author’s name for display.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/comment_author/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_author/#uses)
   | Source: [wp-includes/comment-template.php:82](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L82-L82)
 * function[get_comment_author_email()](https://developer.wordpress.org/reference/functions/get_comment_author_email/)
 * Retrieves the email of the author of the current comment.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_comment_author_email/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_comment_author_email/#uses)
   | Source: [wp-includes/comment-template.php:95](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L95-L109)
 * hook[get_comment_author_email](https://developer.wordpress.org/reference/hooks/get_comment_author_email/)
 * Filters the comment author’s returned email address.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_comment_author_email/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_comment_author_email/#uses)
   | Source: [wp-includes/comment-template.php:108](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L108-L108)
 * function[comment_author_email()](https://developer.wordpress.org/reference/functions/comment_author_email/)
 * Displays the email of the author of the current global $comment.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/comment_author_email/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/comment_author_email/#uses)
   | Source: [wp-includes/comment-template.php:126](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L126-L141)
 * hook[author_email](https://developer.wordpress.org/reference/hooks/author_email/)
 * Filters the comment author’s email for display.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/author_email/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/author_email/#uses)
   | Source: [wp-includes/comment-template.php:140](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L140-L140)
 * function[comment_author_email_link()](https://developer.wordpress.org/reference/functions/comment_author_email_link/)
 * Displays the HTML email link to the author of the current comment.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/comment_author_email_link/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/comment_author_email_link/#uses)
   | Source: [wp-includes/comment-template.php:161](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L161-L166)
 * function[get_comment_author_email_link()](https://developer.wordpress.org/reference/functions/get_comment_author_email_link/)
 * Returns the HTML email link to the author of the current comment.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_comment_author_email_link/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/get_comment_author_email_link/#uses)
   | Source: [wp-includes/comment-template.php:188](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L188-L218)
 * hook[comment_email](https://developer.wordpress.org/reference/hooks/comment_email/)
 * Filters the comment author’s email for display.
 * Used by [2 functions](https://developer.wordpress.org/reference/hooks/comment_email/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_email/#uses)
   | Source: [wp-includes/comment-template.php:203](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/comment-template.php#L203-L203)

 [Previous Page](https://developer.wordpress.org/reference/files/wp-includes/comment-template.php/page/3/?output_format=md)

[1](https://developer.wordpress.org/reference/files/wp-includes/comment-template.php/?output_format=md)
[2](https://developer.wordpress.org/reference/files/wp-includes/comment-template.php/page/2/?output_format=md)
[3](https://developer.wordpress.org/reference/files/wp-includes/comment-template.php/page/3/?output_format=md)
4