File: wp-includes/comment.php
-
Registers the personal data exporter for comments.
-
Finds and exports personal data associated with an email address from the comments table.
-
Registers the personal data eraser for comments.
-
Erases personal data associated with an email address from the comments table.
-
Filters whether to anonymize the comment.
-
Filters the comment data immediately before it is updated in the database.
-
Clears the lastcommentmodified cached value when a comment status is changed.
-
Compares the lengths of comment data against the maximum character limits.
-
functionwp_check_comment_flood()
Checks whether comment flooding is occurring.
-
Filters whether a comment is part of a comment flood.
-
Fires immediately after a comment has been removed from the object cache.
-
Filters a post’s comment count before it is updated in the database.
-
Retrieves the maximum character lengths for the comment form fields.
-
Filters the lengths for the comment form fields.
-
function_prime_comment_caches()
Adds any comments from the given IDs to the cache that do not already exist in cache.
-
functionwp_handle_comment_submission()
Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form.
-
Sends a comment moderation notification to the comment moderator.
-
Sends a notification of a new comment to the post author.
-
Filters whether to send the post author new comment and note notification emails, overriding the site settings and defaults. By default, notifications are sent for all notes and for approved comments.
-
Filters the calculated page on which a comment appears.
-
Filters the ID, if any, of the duplicate comment found when creating a new comment.
-
functionget_default_comment_status()
Gets the default comment status for a post type.
-
Filters the default comment status for the given post type.
-
Fires immediately after transitioning a comment’s status from one to another in the database and removing the comment from the object cache, but prior to all status transition hooks.
-
Fires before a comment is posted.
-
Fires when a comment is attempted on a post that does not exist.
-
hookcomment_closed
Fires when a comment is attempted on a post that has comments closed.
-
hookcomment_on_trash
Fires when a comment is attempted on a trashed post.
-
hookcomment_on_draft
Fires when a comment is attempted on a post in draft mode.
-
Fires when a comment is attempted on a password-protected post.