File: wp-includes/comment.php
-
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.
-
functionwp_delete_comment()
Trashes or deletes a comment.
-
hookdelete_comment
Fires immediately before a comment is deleted from the database.
-
hookdeleted_comment
Fires immediately after a comment is deleted from the database.
-
functionwp_allow_comment()
Validates whether this comment is allowed to be made.
-
hookget_comment
Fires after a comment is retrieved.
-
Fires immediately after a duplicate comment is detected.
-
functionget_comments()
Retrieves a list of comments.
-
Fires immediately before a comment is marked approved.
-
functionget_comment_statuses()
Retrieves all of the WordPress supported comment statuses.
-
Filters a comment’s approval status before it is set.
-
functionget_lastcommentmodified()
Retrieves the date the last comment was modified.
-
functionget_comment_count()
Retrieves the total comment counts for the whole site or a single post.
-
functionadd_comment_meta()
Adds meta data field to a comment.
-
functiondelete_comment_meta()
Removes metadata matching criteria from a comment.
-
functionget_comment_meta()
Retrieves comment meta field for a comment.
-
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.
-
functionsanitize_comment_cookies()
Sanitizes the cookies sent to the user already.
-
Filters the comment author’s name cookie before it is set.
-
Filters the comment author’s email cookie before it is set.
-
Filters the comment author’s URL cookie before it is set.
-
functionget_comment()
Retrieves comment data given a comment ID or comment object.
-
functioncheck_comment()
Checks whether a comment passes internal checks to be allowed to add.
-
Filters the number of links found in a comment.
-
functionget_approved_comments()
Retrieves the approved comments for a post.