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
 * @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


Leave a Reply

Random Post Selection ::

Recent Posts

Unlock Unlimited Downloads