Skip to content

Instantly share code, notes, and snippets.

@shazdeh
Last active August 29, 2015 13:56
Show Gist options
  • Save shazdeh/8852114 to your computer and use it in GitHub Desktop.
Save shazdeh/8852114 to your computer and use it in GitHub Desktop.
Disable "URL" field from comments form
<?php
function custom_comment_form_fields( $fields ) {
unset( $fields['url'] );
return $fields;
}
add_filter( 'comment_form_default_fields', 'custom_comment_form_fields' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment