Remove Comment Author Link In WordPress Comment List

Add the following code snippet to the functions.php of your theme to remove the links to the comment author website in WordPress comments list.

Works when the comments list is generated with wp_list_comments().

/**
 * Remove comment author link in WordPress comment list
 * 
 * Removes the a href link to the comment authors website 
 * in the comments list generated with wp_list_comments().
 * 
 * @link https://wordpress.stackexchange.com/a/284354/90061
 * @since 1.0
 */
function velocity_remove_comment_author_link( $author_link, $author ) {
  return $author;
}
add_filter( 'get_comment_author_link', 'velocity_remove_comment_author_link', 10, 2 );

Also refer: Remove Website Field From WordPress Comment Form

Hello, I am Arun Basil Lal. Thank you for reading!

I am a WordPress product developer and creator of Image Attributes Pro. I am passionate about solving problems and travelling the world.

Divi WordPress Theme - My Review

Divi WordPress Theme
Divi is a WordPress theme that web designers do not want you to know. It comes with a drag-and-drop theme builder. You can build beautiful looking unique websites without touching a line of code. Just choose from one of the many pre-made layouts, or pick elements and arrange them any way you like.

Divi is every WordPress developer's wet dream. Surprise your clients with neat responsive websites and have fun building them.

Divi comes from Elegant Themes. If you enjoy building websites, you *need* an Elegant Themes membership. 87 beautiful themes and 5 plugins for the cost of less than a candy-bar each!


Note: I am an avid user of Divi myself and this is a honest review. I wouldn't recommend something that I do not personally find amazing.

no responses.

1 Pings / Trackbacks.

  1. […] Also refer: Remove Comment Author Link In WordPress Comment List […]

Leave a Reply

Your email address will not be published. Required fields are marked *

*