Remove links from comment names

<?php
/**
* Remove URL field from comment form
*
*/
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
*
*/
function be_remove_url_from_existing_comments( $author_link ) {
return strip_tags( $author_link );
}
add_filter( 'get_comment_author_link', 'be_remove_url_from_existing_comments' );
view raw functions.php hosted with ❤ by GitHub
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