MainWP Community

Remove URL field in comments

Use this code snippet to remove the URL field from the comments form on your child sites.

Snippet Type

Execute on Child Sites

Snippet:

function wp_disable_comment_url( $fields ) {
   unset( $fields[‘url’] );
   return $fields;
}
add_filter( ‘comment_form_default_fields’, ’wp_disable_comment_url’ );