cancel_comment_reply_link() - WordPress 函数参考中文文档

返回介绍

cancel_comment_reply_link()

发布于 2017-09-10 字数1716 浏览 1200 评论 0

cancel_comment_reply_link( string $text = '' )

Display HTML content for cancel comment reply link.


描述


参数

$text

(string)
(Optional)
Text to display for cancel reply link.

Default value: ”


源代码

File: wp-includes/comment-template.php

function cancel_comment_reply_link( $text = '' ) {
	echo get_cancel_comment_reply_link($text);
}

更新日志

Version 描述
2.7.0 Introduced.

相关函数

Uses

  • wp-includes/comment-template.php:
    get_cancel_comment_reply_link()

Used By

  • wp-includes/comment-template.php:
    comment_form()

User Contributed Notes

  1. Skip to note content

    You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note

    Contributed by Codex

    Basic Examples

    Default Usage

    
    <?php cancel_comment_reply_link(); ?>
    

    Using Custom Text

    
    <?php cancel_comment_reply_link( __( 'Cancel Reply', 'textdomain' ) ); ?>
    

上一篇:calendar_week_mod()

下一篇:can_edit_network()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!