How to Remove the “Website” Field from the Comment Form

To remove the “Website” field from your WordPress comment form, install and activate the ProFunctions plugin. Then, add the following code to it:

add_filter( 'comment_form_default_fields', 'wpshop_remove_url_from_comment_form' );
add_filter( 'comment_form_fields', 'wpshop_remove_url_from_comment_form' );

function wpshop_remove_url_from_comment_form( $fields ) {
    unset( $fields['url'] );
    return $fields;
}

This code simply removes the URL field from your comment form, helping you reduce spam and simplify the commenting experience for your visitors.

Did the answer help you?
Related Questions