Created
February 28, 2013 09:12
-
-
Save chuckreynolds/5055392 to your computer and use it in GitHub Desktop.
Remove WordPress Comment Form URL field.
Had a client that needed the URL field gone from the comment forms primarily for spam and they just didn't need the extra data so we nuked it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function vuurr_nuke_comment_url_field($fields) { | |
unset($fields['url']); | |
return $fields; | |
} | |
add_filter('comment_form_default_fields','vuurr_nuke_comment_url_field'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment