Title: wp-admin/includes/comment.php | Developer.WordPress.org

---

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

 * function[enqueue_comment_hotkeys_js()](https://developer.wordpress.org/reference/functions/enqueue_comment_hotkeys_js/)
 * Enqueues comment shortcuts jQuery script.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/enqueue_comment_hotkeys_js/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/enqueue_comment_hotkeys_js/#uses)
   | Source: [wp-admin/includes/comment.php:289](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/comment.php#L289-L293)
 * function[comment_exists()](https://developer.wordpress.org/reference/functions/comment_exists/)
 * Determines if a comment exists based on author and date.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/comment_exists/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/comment_exists/#uses)
   | Source: [wp-admin/includes/comment.php:26](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/comment.php#L26-L42)
 * function[edit_comment()](https://developer.wordpress.org/reference/functions/edit_comment/)
 * Updates a comment with values provided in $_POST.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/edit_comment/#used-by)
   | Uses [9 functions](https://developer.wordpress.org/reference/functions/edit_comment/#uses)
   | Source: [wp-admin/includes/comment.php:54](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/comment.php#L54-L184)
 * function[get_comment_to_edit()](https://developer.wordpress.org/reference/functions/get_comment_to_edit/)
 * Returns a WP_Comment object based on comment ID.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_comment_to_edit/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/get_comment_to_edit/#uses)
   | Source: [wp-admin/includes/comment.php:194](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/comment.php#L194-L219)
 * hook[comment_edit_pre](https://developer.wordpress.org/reference/hooks/comment_edit_pre/)
 * Filters the comment content before editing.
 * Used by [2 functions](https://developer.wordpress.org/reference/hooks/comment_edit_pre/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/comment_edit_pre/#uses)
   | Source: [wp-admin/includes/comment.php:211](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/comment.php#L211-L211)
 * function[get_pending_comments_num()](https://developer.wordpress.org/reference/functions/get_pending_comments_num/)
 * Gets the number of pending comments on a post or posts.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/get_pending_comments_num/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_pending_comments_num/#uses)
   | Source: [wp-admin/includes/comment.php:232](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/comment.php#L232-L269)
 * function[floated_admin_avatar()](https://developer.wordpress.org/reference/functions/floated_admin_avatar/)
 * Adds avatars to relevant places in admin.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/floated_admin_avatar/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/floated_admin_avatar/#uses)
   | Source: [wp-admin/includes/comment.php:279](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/comment.php#L279-L282)
 * function[comment_footer_die()](https://developer.wordpress.org/reference/functions/comment_footer_die/)
 * Displays error message at bottom of comments.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/comment_footer_die/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/comment_footer_die/#uses)
   | Source: [wp-admin/includes/comment.php:303](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/comment.php#L303-L307)