wp-includes/comment.php


Lines:

1 to 100 of 171
<?php

/**
 * Core Comment API
 *
 * @package WordPress
 * @subpackage Comment
 */

/* function check_comment() – Check whether a comment passes internal checks to be allowed to add. */

/* function get_approved_comments() – Retrieve the approved comments for post $post_id. */

/* function get_comment() – Retrieves comment data given a comment ID or comment object. */

/* function get_comments() – Retrieve a list of comments. */

/* function get_comment_statuses() – Retrieve all of the WordPress supported comment statuses. */

/* function get_default_comment_status() – Gets the default comment status for a post type. */

/* function get_lastcommentmodified() – The date the last comment was modified. */

/* function get_comment_count() – Retrieves the total comment counts for the whole site or a single post. */

//
// Comment meta functions.
//

/* function add_comment_meta() – Add meta data field to a comment. */

/* function delete_comment_meta() – Remove metadata matching criteria from a comment. */

/* function get_comment_meta() – Retrieve comment meta field for a comment. */

/* function update_comment_meta() – Update comment meta field based on comment ID. */

/* function wp_queue_comments_for_comment_meta_lazyload() – Queues comments for metadata lazy-loading. */

/* function wp_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. */

/* function sanitize_comment_cookies() – Sanitizes the cookies sent to the user already. */

/* function wp_allow_comment() – Validates whether this comment is allowed to be made. */

/* function check_comment_flood_db() – Hooks WP’s native database-based comment-flood check. */

/* function wp_check_comment_flood() – Checks whether comment flooding is occurring. */

/* function separate_comments() – Separates an array of comments into an array keyed by comment_type. */

/* function get_comment_pages_count() – Calculate the total number of comment pages. */

/* function get_page_of_comment() – Calculate what page number a comment will appear on for comment paging. */

/* function wp_get_comment_fields_max_lengths() – Retrieves the maximum character lengths for the comment form fields. */

/* function wp_check_comment_data_max_lengths() – Compares the lengths of comment data against the maximum character limits. */

/* function wp_check_comment_disallowed_list() – Checks if a comment contains disallowed characters or words. */

/* function wp_count_comments() – Retrieves the total comment counts for the whole site or a single post. */

/* function wp_delete_comment() – Trashes or deletes a comment. */

/* function wp_trash_comment() – Moves a comment to the Trash */

/* function wp_untrash_comment() – Removes a comment from the Trash */

/* function wp_spam_comment() – Marks a comment as Spam */

/* function wp_unspam_comment() – Removes a comment from the Spam */

/* function wp_get_comment_status() – The status of a comment by ID. */

/* function wp_transition_comment_status() – Call hooks for when a comment status transition occurs. */

/* function _clear_modified_cache_on_transition_comment_status() – Clear the lastcommentmodified cached value when a comment status is changed. */

/* function wp_get_current_commenter() – Get current commenter’s name, email, and URL. */

/* function wp_get_unapproved_comment_author_email() – Get unapproved comment author’s email. */

/* function wp_insert_comment() – Inserts a comment into the database. */

/* function wp_filter_comment() – Filters and sanitizes comment data. */

/* function wp_throttle_comment_flood() – Whether a comment should be blocked because of comment flood. */

/* function wp_new_comment() – Adds a new comment to the database. */

/* function wp_new_comment_notify_moderator() – Send a comment moderation notification to the comment moderator. */

/* function wp_new_comment_notify_postauthor() – Send a notification of a new comment to the post author. */

/* function wp_set_comment_status() – Sets the status of a comment. */

/* function wp_update_comment() – Updates an existing comment in the database. */

/* function wp_defer_comment_counting() – Whether to defer comment counting. */

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,