wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/comment.php › WordPress File
Functions72
› Core Comment API
Function | Short description |
---|---|
add_comment_meta | Adds meta data field to a comment. |
check_comment | Checks whether a comment passes internal checks to be allowed to add. |
check_comment_flood_db | Hooks WP's native database-based comment-flood check. |
clean_comment_cache | Removes a comment from the object cache. |
delete_comment_meta | Removes metadata matching criteria from a comment. |
discover_pingback_server_uri | Finds a pingback server URI based on the given URL. |
do_all_enclosures | Performs all enclosures. |
do_all_pingbacks | Performs all pingbacks. |
do_all_pings | Performs all pingbacks, enclosures, trackbacks, and sends to pingback services. |
do_all_trackbacks | Performs all trackbacks. |
do_trackbacks | Performs trackbacks. |
generic_ping | Sends pings to all of the ping site services. |
get_approved_comments | Retrieves the approved comments for a post. |
get_comment | Retrieves comment data given a comment ID or comment object. |
get_comments | Retrieves a list of comments. |
get_comment_count | Retrieves the total comment counts for the whole site or a single post. |
get_comment_meta | Retrieves comment meta field for a comment. |
get_comment_pages_count | Calculates the total number of comment pages. |
get_comment_statuses | Retrieves all of the WordPress supported comment statuses. |
get_default_comment_status | Gets the default comment status for a post type. |
get_lastcommentmodified | Retrieves the date the last comment was modified. |
get_page_of_comment | Calculates what page number a comment will appear on for comment paging. |
pingback | Pings back the links found in a post. |
pingback_ping_source_uri | Default filter attached to pingback_ping_source_uri to validate the pingback's Source URI. |
privacy_ping_filter | Checks whether blog is public before returning sites. |
sanitize_comment_cookies | Sanitizes the cookies sent to the user already. |
separate_comments | Separates an array of comments into an array keyed by comment_type. |
trackback | Sends a Trackback. |
update_comment_cache | Updates the comment cache of given comments. |
update_comment_meta | Updates comment meta field based on comment ID. |
weblog_ping | Sends a pingback. |
wp_allow_comment | Validates whether this comment is allowed to be made. |
wp_cache_set_comments_last_changed | Sets the last changed time for the 'comment' cache group. |
wp_check_comment_data | Checks whether comment data passes internal checks or has disallowed content. |
wp_check_comment_data_max_lengths | Compares the lengths of comment data against the maximum character limits. |
wp_check_comment_disallowed_list | Checks if a comment contains disallowed characters or words. |
wp_check_comment_flood | Checks whether comment flooding is occurring. |
wp_comments_personal_data_eraser | Erases personal data associated with an email address from the comments table. |
wp_comments_personal_data_exporter | Finds and exports personal data associated with an email address from the comments table. |
wp_count_comments | Retrieves the total comment counts for the whole site or a single post. |
wp_defer_comment_counting | Determines whether to defer comment counting. |
wp_delete_comment | Trashes or deletes a comment. |
wp_filter_comment | Filters and sanitizes comment data. |
wp_get_comment_fields_max_lengths | Retrieves the maximum character lengths for the comment form fields. |
wp_get_comment_status | Retrieves the status of a comment by comment ID. |
wp_get_current_commenter | Gets current commenter's name, email, and URL. |
wp_get_unapproved_comment_author_email | Gets unapproved comment author's email. |
wp_handle_comment_submission | Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form. |
wp_insert_comment | Inserts a comment into the database. |
wp_lazyload_comment_meta | Queue comment meta for lazy-loading. |
wp_new_comment | Adds a new comment to the database. |
wp_new_comment_notify_moderator | Sends a comment moderation notification to the comment moderator. |
wp_new_comment_notify_postauthor | Sends a notification of a new comment to the post author. |
wp_register_comment_personal_data_eraser | Registers the personal data eraser for comments. |
wp_register_comment_personal_data_exporter | Registers the personal data exporter for comments. |
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. |
wp_set_comment_status | Sets the status of a comment. |
wp_spam_comment | Marks a comment as Spam. |
wp_throttle_comment_flood | Determines whether a comment should be blocked because of comment flood. |
wp_transition_comment_status | Calls hooks for when a comment status transition occurs. |
wp_trash_comment | Moves a comment to the Trash |
wp_unspam_comment | Removes a comment from the Spam. |
wp_untrash_comment | Removes a comment from the Trash |
wp_update_comment | Updates an existing comment in the database. |
wp_update_comment_count | Updates the comment count for post(s). |
wp_update_comment_count_now | Updates the comment count for the post. |
xmlrpc_pingback_error | Default filter attached to xmlrpc_pingback_error. |
_clear_modified_cache_on_transition_comment_status | Clears the lastcommentmodified cached value when a comment status is changed. |
_close_comments_for_old_post | Closes comments on an old post. Hooked to comments_open and pings_open. |
_close_comments_for_old_posts | Closes comments on old posts on the fly, without any extra DB queries. Hooked to the_posts. |
_prime_comment_caches | Adds any comments from the given IDs to the cache that do not already exist in cache. |
_wp_batch_update_comment_type | Updates the comment type for a batch of comments. |