Created
June 9, 2016 05:11
-
-
Save tiberiur/f4566c5b62e829a409284215d7b9dc88 to your computer and use it in GitHub Desktop.
[Wordpress] Remove website field from comments
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 from comments | |
*/ | |
function disable_comment_url($fields) { | |
unset($fields['url']); | |
return $fields; | |
} | |
add_filter('comment_form_default_fields','disable_comment_url'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment