Core Function
View Source on Trac ↗ get_cancel_comment_reply_link()
get_cancel_comment_reply_link( mixed $link_text = '', mixed $post = null ) Retrieves HTML content for cancel comment reply link.
Parameters 2 required
| Name / Type | Description |
|---|---|
| string | $link_text Optional. Text to display for cancel reply link. If empty, defaults to 'Click here to cancel reply'. Default empty. Required |
| mixed | (int | WP_Post | null) $post Optional. The post the comment thread is being displayed for. Defaults to the current global post. Required |
Return Value
(string)
string
Function Information
Since Version
2.7.0
Source File
wp-includes/comment-template.php
Advertisement