get_edit_comment_link
Filters the comment edit link.
Usage
add_filter( 'get_edit_comment_link', 'wp_kama_get_edit_comment_link_filter' ); /** * Function for `get_edit_comment_link` filter-hook. * * @param string $location The edit link. * * @return string */ function wp_kama_get_edit_comment_link_filter( $location ){ // filter... return $location; }
- $location(string)
- The edit link.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
get_edit_comment_link
wp-includes/link-template.php 1618
return apply_filters( 'get_edit_comment_link', $location );