How to change commenter links to /user/user_id?
You can use the get_comment_author_link hook, which is part of the get_comment_author_link() template tag, like your question already suggests. Then you only have to get the according user_id, which can be done via the $comment global, and construct the link you want accordingly. Exemplary usage like shown below: add_filter( ‘get_comment_author_link’, ‘wpse144835_custom_comment_author_link’ ); function wpse144835_custom_comment_author_link( $link … Read more