WordPress:Template Tags/edit comment link

来自站长百科
Xxf3325讨论 | 贡献2008年6月27日 (五) 10:20的版本 (新页面: == Description == Displays a link to edit the current comment, if the user is logged in and allowed to edit the comment. It must be within WordPress:The Loop, and within a comment lo...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Description

Displays a link to edit the current comment, if the user is logged in and allowed to edit the comment. It must be within WordPress:The Loop, and within a comment loop.

Usage

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

Examples

Default Usage

Displays edit comment link using defaults.

<?php edit_comment_link(); ?>

Displays Edit Comment in Paragraph Tag

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.

Related

模板:Tag Link Tags

模板:PHP Function Tag Footer