get_cancel_comment_reply_link()
Retrieve HTML content for cancel comment reply link.
Used By: cancel_comment_reply_link()
Hooks from the function
Return
String
.
Usage
get_cancel_comment_reply_link( $link_text, $post );
- $link_text(string)
- Text to display for cancel reply link. If empty. Default empty.
Default: 'Click here to cancel reply' - $post(int|WP_Post|null)
- The post the comment thread is being displayed for.
Default: current global post
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. |