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.


Top ↑

Source

File: wp-includes/comment-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More