For a custom role, I've to remove/hide the email and URL fields in the author box inside the Edit Comment area in WP admin. Only the name field should be visible there.
I've to keep the URL and email field enabled for comments in the discussion settings, and can't hide the fields only on the frontend using CSS. They should be removed entirely from the source code of the page, so backend code which removes the fields would be the most likely approach.
Example URL of an edit comment page in WP admin:
The form comes from
wp-admin/edit-form-comment.php, which is called from
wp-admin/comment.php. Can anyone suggest a way to remove the 2 fields from showing up in the form? Thanks.