cancel_comment_reply_link WordPress Filter Hook
The cancel_comment_reply_link hook is used to cancel a comment reply. It can be used when a user changes their mind about replying to a comment, or if they accidentally clicked the reply button. This hook allows you to cancel a comment reply and return to the main comment thread.
apply_filters( 'cancel_comment_reply_link', string $formatted_link , string $link , string $text ) #
Filters the cancel comment reply link HTML.
Parameters
- $formatted_link
(string)The HTML-formatted cancel comment reply link.
- $link
(string)Cancel comment reply link URL.
- $text
(string)Cancel comment reply link text.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |