Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created May 28, 2012 16:34
Show Gist options
  • Save claudiosanches/2820017 to your computer and use it in GitHub Desktop.
Save claudiosanches/2820017 to your computer and use it in GitHub Desktop.
Wordpress - Remove website field from the comments form
<?php
// adicionar isso no functions.php
function dfw_remove_website_field($field) {
if(isset($field['url'])) {
unset($field['url']);
}
return $field;
}
add_filter('comment_form_default_fields', 'dfw_remove_website_field');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment