Remove links from comment names

/**
 * Remove URL field from comment form 
 * @link https://www.billerickson.net/code/remove-links-from-comment-names/
 */
function be_remove_url_from_comment_form( $fields ) {
  unset($fields['url']);
  return $fields;
}
add_filter( 'comment_form_default_fields', 'be_remove_url_from_comment_form' );

/**
 * Remove URL from existing comments 
 * @link https://www.billerickson.net/code/remove-links-from-comment-names/
 */
function be_remove_url_from_existing_comments( $author_link, $author ) {
  return $author;
}
add_filter( 'get_comment_author_link', 'be_remove_url_from_existing_comments', 10, 2 );
Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk