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 a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

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

Let's Talk