How to Remove Comment Author Link in WordPress

You can use the below code snippet to remove the comment author link. You can add the below code to your functions.php or via CodeSnippets plugin.

function filter_get_comment_author_url( $url, $id, $comment ) {
    return "";
add_filter( 'get_comment_author_url', 'filter_get_comment_author_url', 10, 3);

1 thought on “How to Remove Comment Author Link in WordPress”

  1. Hi, Cardino

    Thank You so much for this helpful post. This code makes all the links unclickable in the comments section, but I want to make them unclickable except my link (the Admin link should be clickable). Please write and send me the complete full PHP code. Once again thank you.

    Suresh Bokhim Rai


Leave a Comment