File: wp-includes/comment.php
-
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 notification emails, overriding the site setting.
-
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 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.
-
Fires before a comment is posted.
-
functionclean_comment_cache()
Removes a comment from the object cache.
-
functionupdate_comment_cache()
Updates the comment cache of given comments.
-
function_close_comments_for_old_posts()
Closes comments on old posts on the fly, without any extra DB queries. Hooked to the_posts.
-
Filters the list of post types to automatically close comments for.
-
function_close_comments_for_old_post()
Closes comments on an old post. Hooked to comments_open and pings_open.
-
Filters the user agent sent when pinging-back a URL.
-
functionprivacy_ping_filter()
Checks whether blog is public before returning sites.
-
functiontrackback()
Sends a Trackback.
-
functionweblog_ping()
Sends a pingback.
-
functionpingback_ping_source_uri()
Default filter attached to pingback_ping_source_uri to validate the pingback’s Source URI.
-
functionxmlrpc_pingback_error()
Default filter attached to xmlrpc_pingback_error.
-
hookcomment_post
Fires immediately after a comment is inserted into the database.
-
functiondo_trackbacks()
Performs trackbacks.
-
functionwp_set_comment_status()
Sets the status of a comment.