Skip to content

Instantly share code, notes, and snippets.

@WordPress-Handbuch
Last active April 11, 2019 07:05
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 WordPress-Handbuch/2706f29388682d971596e448b86860b7 to your computer and use it in GitHub Desktop.
Save WordPress-Handbuch/2706f29388682d971596e448b86860b7 to your computer and use it in GitHub Desktop.
Remove website field from WordPress' comment form through filter hook in functions.php
function wh_emove_url_from_comment_form( $fields ) {
unset( $fields['url'] );
return $fields;
}
add_filter( 'comment_form_default_fields', 'wh_remove_url_from_comment_form' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment