Created
November 26, 2012 06:34
-
-
Save tobedoit/4146854 to your computer and use it in GitHub Desktop.
Wordpress: remove 'website' field from comment form
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
/* Remove 'website' field for comment form ***************************************************************** | |
** http://techhacking.com/2011/02/04/wordpress-how-to-remove-the-website-field-from-the-comment-form/ ** **/ | |
/* !댓글폼에서 웹싸이트 필드 제거 ***************************************************************************** */ | |
add_filter('comment_form_default_fields', 'url_filtered'); | |
function url_filtered($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