Advertisements

get_cancel_comment_reply_link

Definition:
function get_cancel_comment_reply_link($text = '') {}

Retrieve HTML content for cancel comment reply link.

Parameters

  • string $text: Optional. Text to display for cancel reply link.

Defined filters

  • cancel_comment_reply_link
    apply_filters('cancel_comment_reply_link', '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text)

Source code

function get_cancel_comment_reply_link($text = '') {

	if ( empty($text) )

		$text = __('Click here to cancel reply.');



	$style = isset($_GET['replytocom']) ? '' : ' style="display:none;"';

	$link = esc_html( remove_query_arg('replytocom') ) . '#respond';

	return apply_filters('cancel_comment_reply_link', '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text);

}

1238

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: