comment_reply_link

Sponsored Link

ユーザーが特定のコメントへの返信として投稿したコメントにリンクを表示します。

JavaScriptが有効になっている場合、comment-reply.jsのJavaScriptは、コメント直下のコメントフォームから移動リンクを読み込みます。

Sponsored Link

原文(翻訳元)Displays a link that lets users post a comment in reply to a specific comment.

If JavaScript is enabled and the comment-reply.js JavaScript is loaded the link moves the comment form to just below the comment.

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

<?php comment_reply_link(array_merge( $args, array('reply_text' => 'Reply', 'add_below' =>
 $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> 

comment_reply_linkのパラメーター

args

(array) 省略可能です。連想配列はデフォルトのオプションを上書きします。連想配列に関する詳しい情報は引数を参照してください。

原文(翻訳元)(array) Optional. Associative array Overrides default options. See Arguments for more info on the associative array.

comment

(integer) 省略可能です。コメントの返信になります。

原文(翻訳元)(integer) Optional. Comment being replied to.

post

(integer) 省略可能です。コメントが表示される投稿です。

(integer) Optional. Post that the comment is going to be displayed on.

引数

次のすべての引数は、$argsパラメーターを使用して上書きすることができます。

原文(翻訳元)All of the following argument can be overridden using the $args parameter.

add_below

(string) JavaScriptのmoveAddCommentForm()関数のパラメーターです。デフォルトは’post’です。

原文(翻訳元)(string) are for the JavaScript moveAddCommentForm() function parameters. Defaults to ‘post’.

respond_id

(integer) JavaScriptのmoveAddCommentForm()関数のパラメーターです。デフォルトは’respond’です。

原文(翻訳元)(integer) are for the JavaScript moveAddCommentForm() function parameters. Defaults to ‘respond’

reply_text

(string) 返信を投稿することができる場合のみ使用します。デフォルトは’Reply’です。

原文(翻訳元)(string) only used if they can post a reply. Defaults to ‘Reply’.

login_text

(string) ユーザはログインしなければならない場合、または最初のコメントを投稿する前に登録した場合にのみ使用します。デフォルトは’Log in to leave a comment’です。

原文(翻訳元)(string) only used if the user must log in or register first before posting a comment. Defaults to ‘Log in to leave a comment’.

depth

(integer)

注釈

  • Uses: get_comment_reply_link()

変更ログ

Since: 2.7.0

ソースファイル

comment_reply_link()は、wp-includes/comment-template.php.内に位置しています。

原文(翻訳元)comment_reply_link() is located in wp-includes/comment-template.php.

関連テンプレートタグ

  • cancel_comment_reply_link
  • 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