Below is the sample filter to remove author URL on comments list by returning the author name only:
function remove_author_url( $comment_ID = 0 ) { $comment = get_comment( $comment_ID ); return get_comment_author( $comment ); } add_filter( 'get_comment_author_link', 'remove_author_url' );
We’ve tried our best to explain everything thoroughly, even though there’s so much information out there. If you found our writing helpful, we’d really appreciate it if you could buy us a coffee as a token of support.
Also, if you’re interested in learning more about WordPress, Javascript, HTML, CSS, and programming in general, you can subscribe to our MailChimp for some extra insights.