File: wp-includes/comment.php
-
functionget_comment_count()
Retrieves the total comment counts for the whole site or a single post.
-
functionwp_allow_comment()
Validates whether this comment is allowed to be made.
-
functionadd_comment_meta()
Adds meta data field to a comment.
-
Fires immediately after a duplicate comment is detected.
-
functiondelete_comment_meta()
Removes metadata matching criteria from a comment.
-
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.
-
functionsanitize_comment_cookies()
Sanitizes the cookies sent to the user already.
-
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.
-
functionget_comment()
Retrieves comment data given a comment ID or comment object.