编辑“WordPress:Template Tags/edit comment link”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第1行: | 第1行: | ||
== Description == | |||
== 描述 == | == 描述 == | ||
显示一个链接来编辑当前的文章,如果用户已经登录,允许用户编辑评论。必须在[[WordPress:The 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 [[WordPress:The Loop]], and within a comment loop. | ||
显示一个链接来编辑当前的文章,如果用户已经登录,允许用户编辑评论。必须在[[WordPress:The Loop|Loop]]内,而且在一个评论loop内。 | |||
== Usage == | |||
== 用法 == | == 用法 == | ||
%%% <?php edit_comment_link('link', 'before', 'after'); ?> %%% | %%% <?php edit_comment_link('link', 'before', 'after'); ?> %%% | ||
%%% <?php edit_comment_link('link', 'before', 'after'); ?> %%% | |||
== Examples == | |||
=== Default Usage === | |||
== 例子== | == 例子== | ||
== 默认用法 == | == 默认用法 == | ||
Displays edit comment link using defaults. | |||
使用默认设置显示编辑评论链接。 | 使用默认设置显示编辑评论链接。 | ||
<?php edit_comment_link(); ?> | |||
<?php edit_comment_link(); ?> | <?php edit_comment_link(); ?> | ||
=== Displays Edit Comment in Paragraph Tag === | |||
=== 在段落标签中显示编辑评论=== | === 在段落标签中显示编辑评论=== | ||
Displays edit comment link, with link text "edit comment", in a paragraph (<p>) tag. | |||
在一个段落(<p>)标签中,显示编辑评论链接,拥有链接文本"编辑评论"。 | 在一个段落(<p>)标签中,显示编辑评论链接,拥有链接文本"编辑评论"。 | ||
<?php edit_comment_link('edit comment', '<p>', '</p>'); ?> | |||
<?php edit_comment_link('edit comment', '<p>', '</p>'); ?> | <?php edit_comment_link('edit comment', '<p>', '</p>'); ?> | ||
== Parameters == | |||
== 参数== | == 参数== | ||
; link : (''string'') | ; link : (''string'') The link text. Defaults to <tt>'Edit This'</tt>. | ||
; before : (''string'') | ; before : (''string'') Text to put before the link text. There is no default. | ||
; after : (''string'') 链接文本之后放置的文本。没有默认设置。 | ; after : (''string'') Text to put after the link text. There is no default. | ||
;链接(''string'')链接文本。默认为<tt>'编辑这个'</tt>。 | |||
;之前:(''string'')链接文本之前放置的文本。没有默认设置。 | |||
;之后:(''string'')链接文本之后放置的文本。没有默认设置。 | |||
== Related == | |||
{{Tag Link Tags}} | |||
{{PHP Function Tag Footer}} | |||
== 相关的 == | == 相关的 == |