File: wp-includes/comment.php
-
Fires when the comment status is in transition from one specific status to another.
-
Fires when the status of a specific comment type is in transition.
-
functionwp_spam_comment()
Marks a comment as Spam.
-
functionwp_get_current_commenter()
Gets current commenter’s name, email, and URL.
-
hookspam_comment
Fires immediately before a comment is marked as Spam.
-
functionwp_delete_comment()
Trashes or deletes a comment.
-
hookdelete_comment
Fires immediately before a comment is deleted from the database.
-
functioncheck_comment_flood_db()
Hooks WP’s native database-based comment-flood check.
-
hookdeleted_comment
Fires immediately after a comment is deleted from the database.
-
Filters the comment flood status.
-
functionwp_trash_comment()
Moves a comment to the Trash
-
Fires before the comment flood message is triggered.
-
hooktrash_comment
Fires immediately before a comment is sent to the Trash.
-
functionseparate_comments()
Separates an array of comments into an array keyed by comment_type.
-
hooktrashed_comment
Fires immediately after a comment is sent to Trash.
-
functionget_comment_pages_count()
Calculates the total number of comment pages.
-
functionwp_untrash_comment()
Removes a comment from the Trash
-
functionget_page_of_comment()
Calculates what page number a comment will appear on for comment paging.
-
hookuntrash_comment
Fires immediately before a comment is restored from the Trash.
-
Fires before the comment is tested for disallowed characters or words.
-
Fires immediately after a comment is restored from the Trash.
-
functionwp_count_comments()
Retrieves the total comment counts for the whole site or a single post.
-
Filters the comments count for a given post or the whole site.
-
Fires immediately before a comment is marked approved.
-
functionget_comment_meta()
Retrieves comment meta field for a comment.
-
Filters a comment’s approval status before it is set.
-
functionupdate_comment_meta()
Updates comment meta field based on comment ID.
-
functionwp_set_comment_cookies()
Sets the cookies used to store an unauthenticated commentator’s identity. Typically used to recall previous comments by this commentator that are still held in moderation.
-
Filters the lifetime of the comment cookie in seconds.
-
hookget_comment
Fires after a comment is retrieved.