cancel_comment_reply_link() WordPress Function
The cancel_comment_reply_link function allows a user to cancel their reply to a comment. This function is typically used in the comments template.
cancel_comment_reply_link( string $text = '' ) #
Displays HTML content for cancel comment reply link.
Parameters
- $text
(string)(Optional) Text to display for cancel reply link. If empty, defaults to 'Click here to cancel reply'.
Default value: ''
Source
File: wp-includes/comment-template.php
function cancel_comment_reply_link( $text = '' ) { echo get_cancel_comment_reply_link( $text ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |