comment_form_title

Sponsored Link

コメントの返信ステータスに基づいてテキストを表示します。これはcomment-reply.js Javascriptが読み込まれていないページ、あるいはJavascriptが無効になっているユーザーのみ影響します。このタグは、通常コメントフォームの前の

すぐ下に使用されます。

Sponsored Link

Displays text based on comment reply status. This only affects users with Javascript disabled or pages without the comment-reply.js JavaScript loaded. This tag is normally used directly below

and before the comment form.

comment_form_titleのテンプレートタグ使用方法

<?php comment_form_title('noreplytext', 'replytext', 'linktoparent' ); ?>

<h3><?php comment_form_title(); ?></h3>
<h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>

comment_form_titleのパラメーター

noreplytext

(string) 省略可能です。コメントに返信しない時に表示するテキストです。デフォルトは’Leave a Reply’です。

(string) Optional. Text to display when not replying to a comment. Default is ‘Leave a Reply’

replytext

(string)省略可能です。コメントが返信された時に表示するテキストです。コメントに返信した投稿者に対して”%s”で応じます。デフォルトは’Leave a Reply to %s’です。

(string) Optional. Text to display when replying to a comment. Accepts “%s” for the author of the comment being replied to. Default is ‘Leave a Reply to %s’

linktoparent

(boolean)省略可能です。コメントにリンクされた投稿者の名前を制御するブールです。デフォルトはTRUEです。

(boolean) Optional. Boolean to control making the author’s name a link to their comment. Default is TRUE.

変更ログ

Since: 2.7.0

関連テンプレートタグ

Migrating_Plugins_and_Themes_to_2.7/Enhanced_Comment_Display

comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comment_author_rss, comment_text_rss, permalink_comments_rss, wp_list_comments, comment_reply_link, cancel_comment_reply_link, comment_form_title, comment_id_fields, previous_comments_link, next_comments_link, paginate_comments_links

Sponsored Link