Created
June 9, 2018 21:01
-
-
Save patric-boehner/db406c6c94920c03b16c1c73e5ea622b to your computer and use it in GitHub Desktop.
Remove website commet field
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 | |
// Don't include opening php function | |
// Remove website comment field | |
add_filter('comment_form_default_fields', 'pb_remove_comment_url'); | |
function pb_remove_comment_url( $fields ) { | |
unset( $fields['url'] ); | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment