get_cancel_comment_reply_link()
Gets the "cancel reply" link for the comment form.
Used for threaded comments to cancel the reply to the specified comment and return the commenting form to its previous position.
Used By: cancel_comment_reply_link()
Hooks from the function
Returns
String.
Usage
$cancel_link = get_cancel_comment_reply_link($text);
- $text(string)
- The text that will become the link text.
Default: 'Click to cancel comment.'
Examples
#1 Display a link that cancels the response to a certain comment:
$cancel_link = get_cancel_comment_reply_link(); echo $cancel_link;
Changelog
| Since 2.7.0 | Introduced. |
| Since 6.2.0 | Added the $post parameter. |