WordPress comment form title tags: comment_form_title

WordPress template tags comment_ form_ Title is used to output the title of a comment form, which is usually used in a custom comment template.

comment_form_title( string $noreplytext = false, string $replytext = false, boolean $linktoparent = true )

Function parameters

$noreplytext

String value, default value: leave a reply

The text that will be displayed when you don’t click to reply to a comment is “post a comment” by default

$replytext

String value, default value: leave a reply to & nbsp;% s

If you click reply, the text will be displayed, where% s is the name of the comment author

$linktoparent

Boolean value, default value: true

Whether the name of the comment author has a link to the comment floor.

Examples of function usage

<h3><?php comment_form_title( 'Comment', 'reply %s Comments on' ); ?></h3>

Extended reading

comment_ form_ The title() function is located at: WP includes / comment- template.php

Related tags:

  • cancel_ comment_ reply_ link()
  • comment_ author()
  • comment_ author_ email()
  • comment_ author_ email_ link()
  • comment_ author_ ip()
  • comment_ author_ link()
  • comment_ author_ rss()
  • comment_ author_ url()
  • comment_ author_ url_ link()
  • comment_ class()
  • comment_ date()
  • comment_ excerpt()
  • comment_ form()
  • comment_ id()
  • comment_ id_ fields()
  • comment_ reply_ link()
  • comment_ text()
  • comment_ text_ rss()
  • comment_ time()
  • comment_ type()
  • comments_ link()
  • comments_ number()
  • comments_ open()
  • comments_ popup_ link()
  • comments_ popup_ script()
  • comments_ rss_ link()
  • get_ avatar()
  • next_ comments_ link()
  • paginate_ comments_ links()
  • permalink_ comments_ rss()
  • previous_ comments_ link()
  • wp_ list_ comments()
Related Article
WordPress comment date tag: comment_date

WordPress template tags comment_ Date is used to output the date of a comment, usually in a custom comment template. Read more

WordPress comment summary tag: comment_excerpt

WordPress template tags comment_ Excerpt is used to output the summary of comments. The default output is 20 characters. It Read more

WordPress comment time tag: comment_time

WordPress template tags comment_ Time is used to output the publishing time of the current comment, which is the same Read more

WordPress RSS format comment author name tag: comment_author_rss

WordPress template tags comment_ author_ RSS is used to output the comment author name in RSS format, which has no Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image