cancel_comment_reply_link
Filters the cancel comment reply link HTML.
Usage
add_filter( 'cancel_comment_reply_link', 'wp_kama_cancel_comment_reply_link_filter', 10, 3 );
/**
* Function for `cancel_comment_reply_link` filter-hook.
*
* @param string $cancel_comment_reply_link The HTML-formatted cancel comment reply link.
* @param string $link_url Cancel comment reply link URL.
* @param string $link_text Cancel comment reply link text.
*
* @return string
*/
function wp_kama_cancel_comment_reply_link_filter( $cancel_comment_reply_link, $link_url, $link_text ){
// filter...
return $cancel_comment_reply_link;
}
- $cancel_comment_reply_link(string)
- The HTML-formatted cancel comment reply link.
- $link_url(string)
- Cancel comment reply link URL.
- $link_text(string)
- Cancel comment reply link text.
Changelog
| Since 2.7.0 | Introduced. |
Where the hook is called
cancel_comment_reply_link
wp-includes/comment-template.php 2021
return apply_filters( 'cancel_comment_reply_link', $cancel_comment_reply_link, $link_url, $link_text );