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
No comments yet... Be the first to leave a reply!