Following are the list of functions and hooks for Comment Template.
- get_comment_author() – Retrieve the author of the current comment.
- get_comment_author (filter) – Filters the returned comment author name.
- comment_author() – Displays the author of the current comment.
- comment_author (filter) – Filters the comment author’s name for display.
- get_comment_author_email() – Retrieve the email of the author of the current comment.
- get_comment_author_email (filter) – Filters the comment author’s returned email address.
- comment_author_email() – Display the email of the author of the current global $comment.
- author_email (filter) – Filters the comment author’s email for display.
- comment_author_email_link() – Display the html email link to the author of the current comment.
- get_comment_author_email_link() – Return the html email link to the author of the current comment.
- comment_email (filter) – Filters the comment author’s email for display.
- get_comment_author_link() – Retrieve the HTML link to the URL of the author of the current comment.
- get_comment_author_link (filter) – Filters the comment author’s link for display.
- comment_author_link() – Display the html link to the url of the author of the current comment.
- get_comment_author_IP() – Retrieve the IP address of the author of the current comment.
- get_comment_author_IP (filter) – Filters the comment author’s returned IP address.
- comment_author_IP() – Display the IP address of the author of the current comment.
- get_comment_author_url() – Retrieve the url of the author of the current comment.
- get_comment_author_url (filter) – Filters the comment author’s URL.
- comment_author_url() – Display the url of the author of the current comment.
- comment_url (filter) – Filters the comment author’s URL for display.
- get_comment_author_url_link() – Retrieves the HTML link of the url of the author of the current comment.
- get_comment_author_url_link (filter) – Filters the comment author’s returned URL link.
- 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.
- get_comment_class() – Returns the classes for the comment div as an array.
- comment_class (filter) – Filters the returned CSS classes for the current comment.
- get_comment_date() – Retrieve the comment date of the current comment.
- get_comment_date (filter) – Filters the returned comment date.
- comment_date() – Display the comment date of the current comment.
- get_comment_excerpt() – Retrieve the excerpt of the current comment.
- comment_excerpt_length (filter) – Filters the amount of words used in the comment excerpt.
- get_comment_excerpt (filter) – Filters the retrieved comment excerpt.
- comment_excerpt() – Display the excerpt of the current comment.
- comment_excerpt (filter) – Filters the comment excerpt for display.
- get_comment_ID() – Retrieve the comment id of the current comment.
- get_comment_ID (filter) – Filters the returned comment ID.
- comment_ID() – Display the comment id of the current comment.
- get_comment_link() – Retrieve the link to a given comment.
- get_comment_link (filter) – Filters the returned single comment permalink.
- get_comments_link() – Retrieves the link to the current post comments.
- get_comments_link (filter) – Filters the returned post comments permalink.
- comments_link() – Display the link to the current post comments.
- get_comments_number() – Retrieve the amount of comments a post has.
- get_comments_number (filter) – Filters the returned comment count for a post.
- comments_number() – Display the language string for the number of comments the current post has.
- get_comments_number_text() – Display the language string for the number of comments the current post has.
- comments_number (filter) – Filters the comments count for display.
- get_comment_text() – Retrieve the text of the current comment.
- get_comment_text (filter) – Filters the text of a comment.
- comment_text() – Display the text of the current comment.
- comment_text (filter) – Filters the text of a comment to be displayed.
- get_comment_time() – Retrieve the comment time of the current comment.
- get_comment_time (filter) – Filters the returned comment time.
- comment_time() – Display the comment time of the current comment.
- get_comment_type() – Retrieve the comment type of the current comment.
- get_comment_type (filter) – Filters the returned comment type.
- comment_type() – Display the comment type of the current comment.
- comments_open() – Whether the current post is open for comments.
- comments_open (filter) – Filters whether the current post is open for comments.
- comments_template() – Load the comment template specified in $file.
- comments_template_query_args (filter) – Filters the arguments used to query comments in comments_template().
- comments_array (filter) – Filters the comments array.
- comments_template (filter) – Filters the path to the theme template file used for the comments template.
- comments_popup_link() – Displays the link to the comments for the current post ID.
- respond_link (filter) – Filters the respond link when a post has no comments.
- comments_popup_link_attributes (filter) – Filters the comments link attributes for display.
- get_comment_reply_link() – Retrieve HTML content for reply to comment link.
- comment_reply_link_args (filter) – Filters the comment reply link arguments.
- comment_reply_link (filter) – Filters the comment reply link.
- comment_reply_link() – Displays the HTML content for reply to comment link.
- get_post_reply_link() – Retrieve HTML content for reply to post link.
- post_comments_link (filter) – Filters the formatted post comments link HTML.
- post_reply_link() – Displays the HTML content for reply to post link.
- get_cancel_comment_reply_link() – Retrieve HTML content for cancel comment reply link.
- cancel_comment_reply_link (filter) – Filters the cancel comment reply link HTML.
- cancel_comment_reply_link() – Display HTML content for cancel comment reply link.
- get_comment_id_fields() – Retrieve hidden input HTML for replying to comments.
- comment_id_fields (filter) – Filters the returned comment id fields.
- comment_id_fields() – Output hidden input HTML for replying to comments.
- comment_form_title() – Display text based on comment reply status.
- wp_list_comments() – List comments. Used in the comments.php template to list comments for a particular post.
- wp_list_comments_args (filter) – Filters the arguments used in retrieving the comment list.
- comment_form() – Outputs a complete commenting form for use within a template.
- comment_form_comments_closed (action) – Fires after the comment form if comments are closed.
- comment_form_default_fields (filter) – Filters the default comment form fields.
- comment_form_defaults (filter) – Filters the comment form default arguments.
- comment_form_before (action) – Fires before the comment form.
- comment_form_must_log_in_after (action) – Fires after the HTML-formatted ‘must log in after’ message in the comment form.
- comment_form_top (action) – Fires at the top of the comment form, inside the form tag.
- comment_form_logged_in (filter) – Filters the ‘logged in’ message for the comment form for display.
- comment_form_logged_in_after (action) – Fires after the is_user_logged_in() check in the comment form.
- comment_form_fields (filter) – Filters the comment form fields, including the textarea.
- comment_form_field_comment (filter) – Filters the content of the comment textarea field for display.
- comment_form_before_fields (action) – Fires before the comment fields in the comment form, excluding the textarea.
- comment_form_field_{$name} (filter) – Filters a comment form field for display. The dynamic portion of the filter hook, `$name`, refers to the name of the comment form field. Such as ‘author’, ’email’, or ‘url’.
- comment_form_after_fields (action) – Fires after the comment fields in the comment form, excluding the textarea.
- comment_form_submit_button (filter) – Filters the submit button for the comment form to display.
- comment_form_submit_field (filter) – Filters the submit field for the comment form to display.
- comment_form (action) – Fires at the bottom of the comment form, inside the closing tag.
- comment_form_after (action) – Fires after the comment form.