Currently my theme calls upon get_comments_link() to create the standard anchor #comments to link to the comments below the post, as does the get_comments_pagenum_link() function on paginated comments.
I would like to replace the #comments anchor in these functions with any other string, without of course changing WP's core php files.
A simple add_filter to completely replace core functions (other than in pluggable.php) doesn't seem to be possible. Are there any other ways of achieving this small change to the output of a core function, that use PHP (rather than say Java)? Is there a way here of using an add_filter with str_replace() perhaps?
This will be useful for foreign language sites, and for redirecting comments to another page with a url request, for example.