Created
August 24, 2015 13:57
-
-
Save shizhua/1e284c4793619d163eac to your computer and use it in GitHub Desktop.
Remove URL field from comment form in wordpress
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 form in wordpress | |
* by Leo | |
* URL: http://wpsites.org/?p=10448 | |
*/ | |
add_filter('comment_form_default_fields', 'website_remove_url'); | |
function website_remove_url( $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