Comments, Pings (category)
get_comments_number_text() | Displays the language string for the number of comments the current post has. |
Comment meta
add_comment_meta() | Adds metadata (custom field) for the specified comment. |
delete_comment_meta() | Remove metadata matching criteria from a comment. |
get_comment_meta() | Gets the metadata of the specified comment. |
update_comment_meta() | Update comment meta field based on comment ID. |
Comments
cancel_comment_reply_link() | Display HTML content for cancel comment reply link. |
comment_author_email_link() | Display the html email link to the author of the current comment. |
comment_form() | Outputs a complete commenting form for use within a template. |
comment_form_title() | Display text based on comment reply status. |
comment_id_fields() | Output hidden input HTML for replying to comments. |
comment_text() | Display the text of the current comment. |
comment_type() | Display the comment type of the current comment. |
comments_link() | Display the link to the current post comments. |
comments_popup_link() | Displays the link to the comments for the current post ID. |
get_avatar() | Retrieve the <img> tag with the avatar of a user who is authorized or provided an email address when commenting. Most commonly used in the comments section. |
get_avatar_data() | Retrieves default data about the avatar. |
get_avatar_url() | Retrieves the avatar URL. |
get_cancel_comment_reply_link() | Retrieve HTML content for cancel comment reply link. |
get_comment() | Retrieves comment data given a comment ID or comment object. |
get_comment_author_email() | Retrieve the email of the author of the current comment. |
get_comment_pages_count() | Calculate the total number of comment pages. |
get_comment_reply_link() | Retrieve HTML content for reply to comment link. |
get_comment_text() | Retrieve the text of the current comment. |
get_comment_type() | Retrieve the comment type of the current comment. |
get_comments() | Retrieve a list of comments. |
get_comments_link() | Retrieves the link to the current post comments. |
get_comments_number() | Retrieves the amount of comments a post has. |
get_comments_pagenum_link() | Retrieves the comments page number link. |
get_edit_comment_link() | Retrieves the edit comment link. |
get_next_comments_link() | Retrieves the link to the next comments page. |
get_page_of_comment() | Calculate what page number a comment will appear on for comment paging. |
get_previous_comments_link() | Retrieves the link to the previous comments page. |
get_the_comments_navigation() | Retrieves navigation to next/previous set of comments, when applicable. |
get_the_comments_pagination() | Retrieves a paginated navigation to next/previous set of comments, when applicable. |
is_comment_feed() | Is the query for a comments feed? |
is_trackback() | Is the query for a trackback endpoint call? |
next_comments_link() | Displays the link to the next comments page. |
paginate_comments_links() | Displays or retrieves pagination links for the comments on the current post. |
previous_comments_link() | Displays the link to the previous comments page. |
sanitize_comment_cookies() | Sanitizes the cookies sent to the user already. |
the_comments_navigation() | Displays navigation to next/previous set of comments, when applicable. |
the_comments_pagination() | Displays a paginated navigation to next/previous set of comments, when applicable. |
wp_allow_comment() | Validates whether this comment is allowed to be made. |
wp_count_comments() | Retrieve total comments for blog or single post. |
wp_delete_comment() | Trashes or deletes a comment. |
wp_get_current_commenter() | Get current commenter's name, email, URL from cookies. Used for comments form. |
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/adds a comment into the database. |
wp_list_comments() | List comments. Used in the comments.php template to list comments for a particular post. |
wp_new_comment() | Adds a new comment to the database. |
wp_notify_moderator() | Notifies the moderator of the site about a new comment that is awaiting approval. |
wp_notify_postauthor() | Notify an author (and/or others) of a comment/trackback/pingback on a post. |
wp_set_comment_cookies() | Sets the cookies (name, email, url) that are used to identify an unauthenticated user when commenting. |
wp_set_comment_status() | Sets the status of a comment. |
wp_spam_comment() | Marks a comment as Spam |
wp_transition_comment_status() | Call hooks for when a comment status transition occurs. |
wp_update_comment() | Updates an existing comment in the database. |
wp_update_comment_count() | Updates the comment count for post(s). |
Comments Loop
comment_author() | Displays the author of the current comment. |
comment_author_email() | Display the email of the author of the current global $comment. |
comment_author_link() | Display the html link to the url of the author of the current comment. |
comment_author_url() | Display the url of the author of the current comment. |
comment_author_url_link() | Displays the HTML link of the url of the author of the current comment. |
comment_class() | Generates semantic classes for each comment element. |
comment_date() | Display the comment date of the current comment. |
comment_excerpt() | Display the excerpt of the current comment. |
comment_ID() | Displays the ID of the current comment. Uses in a comments loop. |
comment_link() | Display the link to the comments. |
comment_reply_link() | Displays the HTML content for reply to comment link. |
comment_time() | Display the comment time of the current comment. |
comments_number() | Display the language string for the number of comments the current post has. |
edit_comment_link() | Displays the edit comment link with formatting. |
get_comment_author() | Retrieve the author of the current comment. |
get_comment_author_link() | Retrieve the HTML link to the URL of the author of the current comment. |
get_comment_author_url() | Retrieve the url of the author of the current comment. |
get_comment_class() | Returns the classes for the comment div as an array. |
get_comment_date() | Retrieve the comment date of the current comment. |
get_comment_excerpt() | Retrieve the excerpt of the current comment. |
get_comment_ID() | Retrieve the comment id of the current comment. |
get_comment_time() | Retrieve the comment time of the current comment. |
have_comments() | Whether there are comments to loop over. |