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: ''


Top ↑

Source

File: wp-includes/comment-template.php

function cancel_comment_reply_link( $text = '' ) {
	echo get_cancel_comment_reply_link( $text );
}


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