File: wp-includes/comment.php
-
Fires immediately after a comment is inserted into the database.
-
functionwp_filter_comment()
Filters and sanitizes comment data.
-
functionwp_spam_comment()
Marks a comment as Spam.
-
hookpre_user_id
Filters the comment author’s user ID before it is set.
-
hookspam_comment
Fires immediately before a comment is marked as Spam.
-
Filters the comment author’s browser user agent before it is set.
-
hookspammed_comment
Fires immediately after a comment is marked as Spam.
-
Filters the comment content before it is set.
-
functionwp_unspam_comment()
Removes a comment from the Spam.
-
hookunspam_comment
Fires immediately before a comment is unmarked as Spam.
-
Fires immediately after a comment is unmarked as Spam.
-
functionwp_get_comment_status()
Retrieves the status of a comment by comment ID.
-
functionwp_transition_comment_status()
Calls hooks for when a comment status transition occurs.
-
Fires when the comment status is in transition.
-
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_get_current_commenter()
Gets current commenter’s name, email, and URL.
-
Filters the current commenter’s name, email, and URL.
-
functionwp_insert_comment()
Inserts a comment into the database.
-
functioncheck_comment_flood_db()
Hooks WP’s native database-based comment-flood check.
-
hookuntrash_comment
Fires immediately before a comment is restored from the Trash.
-
Filters the comment flood status.
-
Fires immediately after a comment is restored from the Trash.
-
Fires before the comment flood message is triggered.
-
functionseparate_comments()
Separates an array of comments into an array keyed by comment_type.
-
functionget_comment_pages_count()
Calculates the total number of comment pages.
-
functionget_page_of_comment()
Calculates what page number a comment will appear on for comment paging.
-
Fires before the comment is tested for disallowed characters or words.
-
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.