Skip to content

Instantly share code, notes, and snippets.

@patric-boehner
Created June 9, 2018 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patric-boehner/db406c6c94920c03b16c1c73e5ea622b to your computer and use it in GitHub Desktop.
Save patric-boehner/db406c6c94920c03b16c1c73e5ea622b to your computer and use it in GitHub Desktop.
Remove website commet field
<?php
// Don't include opening php function
// Remove website comment field
add_filter('comment_form_default_fields', 'pb_remove_comment_url');
function pb_remove_comment_url( $fields ) {
unset( $fields['url'] );
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment