edit_comment_link – WordPress*リファレンス

ユーザがログインされて、コメントを編集することができるなら、現在のコメントを編集するためにリンクを表示します。 Loop以内とコメント輪の中にそれはあるに違いありません。

原文(翻訳元):
⇒Displays a link to edit the current comment, if the user is logged in and allowed to edit the comment. It must be within The Loop, and within a comment loop.

タグ使用方法

<?php edit_comment_link('link', 'before', 'after'); ?>

Default Usage

表示は、デフォルトを使用することでコメントリンクを編集します。

原文(翻訳元):
⇒Displays edit comment link using defaults.

<?php edit_comment_link(); ?>

Displays Edit Comment in Paragraph Tag

ディスプレイはパラグラフ(<p>)タグでリンクテキスト「編集コメント」とのコメントリンクを
編集します。

原文(翻訳元):
⇒Displays edit comment link, with link text “edit comment”, in a paragraph (<p>) tag.

<?php edit_comment_link('edit comment', '<p>', '</p>'); ?>

Parameters

link

(string) リンクテキスト。 ‘これを編集する’ために、デフォルトとします。

原文(翻訳元):
⇒The link text. Defaults to ‘Edit This’.

before

(string) リンクテキストの前に置くテキスト。 デフォルトが全くありません。

原文(翻訳元):
⇒Text to put before the link text. There is no default.

after

(string) リンクテキストの後に置くテキスト。 デフォルトが全くありません。

原文(翻訳元):
⇒Text to put after the link text. There is no default.

使用例

関連テンプレートタグ

edit_post_link, edit_comment_link, link_pages, wp_link_pages, get_year_link, get_month_link, get_day_link


HOME » テンプレートタグ » リンクタグ » edit_comment_link – WordPress*リファレンス