Remove website URL field in comments

This snippet removes the URL field from the comment form.

/**
 * Snippet Name: Remove website URL field in comments
 * Snippet URL: https://www.wpcustoms.net/snippets/remove-website-url-field-comments/
 */
  function wpc_remove_comment_url($fields) {
    unset($fields['url']);
    return $fields;
}
add_filter('comment_form_default_fields','wpc_remove_comment_url'); 

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x