Skip to content

Instantly share code, notes, and snippets.

@rsharrer
Created September 26, 2013 13:52
Show Gist options
  • Select an option

  • Save rsharrer/6714547 to your computer and use it in GitHub Desktop.

Select an option

Save rsharrer/6714547 to your computer and use it in GitHub Desktop.
Remove / unset URL field from comment form
//remove or unset URL in comment
add_filter('comment_form_default_fields', 'unset_url_field');
function unset_url_field($fields){
if(isset($fields['url']))
unset($fields['url']);
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment