cancel_comment_reply_link
Filters the cancel comment reply link HTML.
Использование
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 $formatted_link The HTML-formatted cancel comment reply link. * @param string $link Cancel comment reply link URL. * @param string $text Cancel comment reply link text. * * @return string */ function wp_kama_cancel_comment_reply_link_filter( $formatted_link, $link, $text ){ // filter... return $formatted_link; }
- $formatted_link(строка)
- The HTML-formatted cancel comment reply link.
- $link(строка)
- Cancel comment reply link URL.
- $text(строка)
- Cancel comment reply link text.
Список изменений
С версии 2.7.0 | Введена. |
Где вызывается хук
cancel_comment_reply_link
wp-includes/comment-template.php 1911
return apply_filters( 'cancel_comment_reply_link', $formatted_link, $link, $text );