WordPress Snippets at WPcustoms

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://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');