Created
July 10, 2013 19:54
-
-
Save wpspeak/5969661 to your computer and use it in GitHub Desktop.
Remove URL field from Comment Section
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
<?php | |
//Remove URL field from Comment Section | |
function remove_comment_url_fields($fields) { | |
if(isset($fields['url'])) | |
{ | |
unset($fields['url']); | |
} | |
return $fields; | |
} | |
add_filter('comment_form_default_fields','remove_comment_url_fields'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment