WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/cancel comment reply link

Description

Displays a link which cancels the replying to a previous comment (a nested comment) and resets the comment form back to the default state.

Usage

 <?php cancel_comment_reply_link$text ); ?> 

Parameters

$text
(string) (optional) Text to display as a link. If empty defaults to 'Click here to cancel reply.'
Default: Empty string

Return

(string) 
The HTML for the cancel comment reply link.

Example

Default Usage

<?php cancel_comment_reply_link(); ?>

Using Custom Text

<?php cancel_comment_reply_link( 'Cancel Reply' ); ?>

Notes

Source File

cancel_comment_reply_link() is located in wp-includes/comment-template.php.

Change Log

Since: 2.7.0

Related

Comments Functions

See also index of Function Reference and index of Template Tags.
This article is marked as in need of editing. You can help Codex by editing it.